C++ to MATLAB: for loops
8 次查看(过去 30 天)
显示 更早的评论
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?
0 个评论
采纳的回答
madhan ravi
2020-6-15
for offx = 0:1 % simplicity of MATLAB
...
end
1 个评论
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 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!