how to loop ?

1 comentario

Image Analyst
Image Analyst el 4 de Feb. de 2022
Are you asking us to do your homework for you?
Did you even try a for loop like it said to use? If not, why not?
theSum = 0;
for x = 0 : 20
% code
end

Respuestas (1)

KSSV
KSSV el 4 de Feb. de 2022

0 votos

% Demo example
thesum = 0 ;
for i = 1:10
thesum = thesum + i ;
end

La pregunta está cerrada.

Productos

Versión

R2021b

Etiquetas

Preguntada:

el 4 de Feb. de 2022

Cerrada:

el 4 de Feb. de 2022

Community Treasure Hunt

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

Start Hunting!

Translated by