can i write simple for loop in the command window
60 次查看(过去 30 天)
显示 更早的评论
Have some output data and I need to organize it. simple for loop will do but can i write it in the command window?
0 个评论
回答(1 个)
Azzi Abdelmalek
2013-8-1
编辑:Azzi Abdelmalek
2013-8-1
for k=1:3;a(k)=k^2;end
%or
for k=1:3,...
a(k)=k^2,...
end
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Loops and Conditional Statements 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!