Borrar filtros
Borrar filtros

fortran do loop to matlab

2 visualizaciones (últimos 30 días)
ravi shukla
ravi shukla el 5 de Nov. de 2020
Respondida: dpb el 5 de Nov. de 2020
DO 7 J = 1, JMAX
something
DO 6 I = 1, IMAX
something
6 CONTINUE
7 CONTINUE

Respuestas (1)

dpb
dpb el 5 de Nov. de 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.

Categorías

Más información sobre Fortran with MATLAB en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by