How do you read this code?
显示 更早的评论
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)...
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!