Can somebody break down how they would read this code?
>> A=[0:2:10];k=2;
>> B=A(mod((1:end)-k-1,end)+1);
I end up with B=A(9 10 0 1 2 3 4 5 6 7)...

 採用された回答

Walter Roberson
Walter Roberson 2015 年 6 月 11 日

0 投票

1 件のコメント

Salaheddin Hosseinzadeh
Salaheddin Hosseinzadeh 2015 年 6 月 11 日
What Walter is trying to say is that, don't post same questions, I believe!

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeStartup and Shutdown についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by