How do I convert from a while loop to a for loop?
Show older comments
i = 0;
while (i < 110)
fprintf('i = %d\n',i)
i = i + 11;
end
Accepted Answer
More Answers (0)
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!