Borrar filtros
Borrar filtros

can i write simple for loop in the command window

60 visualizaciones (últimos 30 días)
Andrew Kreitzman
Andrew Kreitzman el 1 de Ag. de 2013
Have some output data and I need to organize it. simple for loop will do but can i write it in the command window?

Respuestas (1)

Azzi Abdelmalek
Azzi Abdelmalek el 1 de Ag. de 2013
Editada: Azzi Abdelmalek el 1 de Ag. de 2013
for k=1:3;a(k)=k^2;end
%or
for k=1:3,...
a(k)=k^2,...
end

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!

Translated by