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

采纳的回答

Walter Roberson
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!

Translated by