Filter löschen
Filter löschen

fortran do loop to matlab

2 Ansichten (letzte 30 Tage)
ravi shukla
ravi shukla am 5 Nov. 2020
Beantwortet: dpb am 5 Nov. 2020
DO 7 J = 1, JMAX
something
DO 6 I = 1, IMAX
something
6 CONTINUE
7 CONTINUE

Antworten (1)

dpb
dpb am 5 Nov. 2020
MATLAB is Fortran w/ DO --> for and CONTINUE --> end
But, depending on what "somethings" are, you may well (and probably should) vectorize the code and eliminate the explicit loops entirely.

Kategorien

Mehr zu Fortran with MATLAB finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by