Hi!(adsbygoogle = window.adsbygoogle || []).push({});

I've got some trouble with using f2matlab.

I need to convert a f90 source code into matlab code.In order to do this i type on matlab command window:

>>f2matlab('filename.f90');

but matlab displays the following error:

??? Subscript indices must either be real positive integers or logicals.

Error in ==> f2matlab at 130

if ~inastring_f(filestr(temp7(temp6(j)):temp7(temp6(i))),temp7(temp6(i))-temp7(temp6(j))+1)

Does anybody know how to fix it?

**Physics Forums | Science Articles, Homework Help, Discussion**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Trouble with using f2matlab

**Physics Forums | Science Articles, Homework Help, Discussion**