Filter löschen
Filter löschen

can i write simple for loop in the command window

60 Ansichten (letzte 30 Tage)
Andrew Kreitzman
Andrew Kreitzman am 1 Aug. 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?

Antworten (1)

Azzi Abdelmalek
Azzi Abdelmalek am 1 Aug. 2013
Bearbeitet: Azzi Abdelmalek am 1 Aug. 2013
for k=1:3;a(k)=k^2;end
%or
for k=1:3,...
a(k)=k^2,...
end

Kategorien

Mehr zu Loops and Conditional Statements finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by