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)...

 Respuesta aceptada

Walter Roberson
Walter Roberson el 11 de Jun. de 2015

0 votos

1 comentario

Salaheddin Hosseinzadeh
Salaheddin Hosseinzadeh el 11 de Jun. de 2015
What Walter is trying to say is that, don't post same questions, I believe!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Startup and Shutdown en Centro de ayuda y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by