Hi sir, i attached one code,please show hw to save result from for loop
1 次查看(过去 30 天)
显示 更早的评论
ui=[1 2 3 4 5];
for i=1:length(ui)
k=i+(i+1)/2
end
0 个评论
采纳的回答
Walter Roberson
2015-8-25
编辑:Walter Roberson
2015-8-25
k(i) = ui(i)+ui(i+1)/2;
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!