I'm translating some code from Fortran77 to Matlab and I'm struggling due to the sentence GO TO is not valid in Matlab.(adsbygoogle = window.adsbygoogle || []).push({});

Usually using sentences while I can solve the problem but in a particular case I don't know how to face it.

To put in situation, i.e:

code

line 1

line 2

...

128 a=a+1

if c==1 && kcount < 20 then

line

line

if (h < 30) then

go to 128

end if

end if

line

line

if (zmax == 0) go to 128

if (zmin. lt. 0.999d0*zmax) go to 128

line

end

The problem, if can be apreciated, is the go to inside the double if statement that also is in normal if statements.

If it's neccesary I could write the code.

Thanks!

**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!

# How to convert GO TO (Fortran77) to Matlab

Loading...

Similar Threads for convert Fortran77 Matlab |
---|

MATLAB MATLAB: forces acting on an object |

MATLAB Matlab histogram |

MATLAB Sovling Bernoulli's differential equation in matlab? |

MATLAB Matlab-like software |

Converting Simulink model to C code, integration |

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