fortran do loop to matlab

2 次查看(过去 30 天)
ravi shukla
ravi shukla 2020-11-5
回答: dpb 2020-11-5
DO 7 J = 1, JMAX
something
DO 6 I = 1, IMAX
something
6 CONTINUE
7 CONTINUE

回答(1 个)

dpb
dpb 2020-11-5
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.

类别

Help CenterFile Exchange 中查找有关 Fortran with MATLAB 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by