How to convert this ...for loop to while loop ?

 Respuesta aceptada

David Fletcher
David Fletcher el 10 de Abr. de 2021
i=1;
while i<=5
j=1;
while j<=20
amp=i*1.2;
wt=j*0.05;
v(i,j)=amp*sin(wt);
j=j+1;
end
i=i+1;
end

Más respuestas (0)

Categorías

Más información sobre Loops and Conditional Statements en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 10 de Abr. de 2021

Respondida:

el 10 de Abr. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by