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