Increment the value inside another loop
Show older comments
for i=1:10
if(true)
while(true)
i=i+1;
end
end
end
will this increment or update the value of i ?
2 Comments
Stephen23
on 25 Apr 2018
@Mushahid Shamim: what happened when you tried it?
Mushahid Shamim
on 25 Apr 2018
Accepted Answer
More Answers (0)
Categories
Find more on Loops and Conditional Statements 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!