I need the best way to write the loop commands

3 ビュー (過去 30 日間)
sundus
sundus 2016 年 2 月 18 日
コメント済み: sundus 2016 年 2 月 18 日
for i=1:15,
y(i+1)=vec(i);
end
y(1)=vec(16);

採用された回答

Walter Roberson
Walter Roberson 2016 年 2 月 18 日
y = vec([16, 1:15]);
  2 件のコメント
sundus
sundus 2016 年 2 月 18 日
I appreciate your work.
sundus
sundus 2016 年 2 月 18 日
Thank you.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLoops and Conditional Statements についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by