C++ to MATLAB: for loops

조회 수: 2 (최근 30일)
Hans123
Hans123 2020년 6월 15일
댓글: madhan ravi 2020년 6월 15일
currently working on converting C++ to MATLAB not proficient in C++ and this is a for loop
Help appreciated
for(offx=0;offx<=1;offx++){ %C++
...
end
%what's the equivalent?

채택된 답변

madhan ravi
madhan ravi 2020년 6월 15일
for offx = 0:1 % simplicity of MATLAB
...
end
  댓글 수: 1
madhan ravi
madhan ravi 2020년 6월 15일
You seem to be asking the basic questions https://www.mathworks.com/learn/tutorials/matlab-onramp.html to get you started with a trust.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by