Clear Filters
Clear Filters

Using while like for

3 views (last 30 days)
Giannakis Stoukas
Giannakis Stoukas on 19 Apr 2015
Edited: per isakson on 19 Apr 2015
I want to use while loop,like double for loop.I have a
while flag==0
for i+1:N
for j=1:V
if
% {part of code, flag becomes one (flag=1) }
end
end
end
end
and i want to write it in while loop with a condition that stops when a variable flag becomes 1

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!