how to write Conditional for loop in matlab without giving range? and it should run till condition satisfied
13 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Momin khan
el 27 de Nov. de 2019
Comentada: Luna
el 28 de Nov. de 2019
clear all
clc
K=0;
for Flag=1
if K>4
Flag=1
else
K=K+1
Flag=0
end
end
this should run untill Flag = 1 but its not happening it just add 1 in K and stops and gives the answer Flag=0.
i want this to run untill Flag=1.
0 comentarios
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
Más información sobre Loops and Conditional Statements en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!