Borrar filtros
Borrar filtros

for loops within while loop

1 visualización (últimos 30 días)
Matthew
Matthew el 15 de Abr. de 2024
Comentada: VBBV el 16 de Abr. de 2024
.

Respuestas (1)

VBBV
VBBV el 15 de Abr. de 2024
while t1< 2 & h2 >= 0
 % your code 
end 

You could put both conditions together as above using single while loop.

  3 comentarios
Matthew
Matthew el 15 de Abr. de 2024
unfortunately this does not solve the questions two my problem. i appreciate the insight, though.
VBBV
VBBV el 16 de Abr. de 2024
if you explain the problem clearly (without dubious intentions) , its easier to get the problem solved.

Iniciar sesión para comentar.

Categorías

Más información sobre Loops and Conditional Statements en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by