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 - The Fusion of Science and Community**

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

# Trouble with using f2matlab

Loading...

Similar Threads - Trouble using f2matlab | Date |
---|---|

Mathematica: Trouble accurately integrating highly-nonlinear DE | Aug 16, 2013 |

Trouble with Method of Lines Matlab | Mar 1, 2013 |

Matlab integration trouble | Feb 28, 2013 |

Trouble downloading miktex. | Feb 9, 2013 |

MATLAB function trouble using (wtls_line) | Jun 14, 2012 |

**Physics Forums - The Fusion of Science and Community**