help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

arbitrary rotating values of an array


From: Rick T
Subject: arbitrary rotating values of an array
Date: Mon, 9 Jan 2012 17:51:04 -1000


Greetings All

I'm trying to arbitrarily rotate the values of an array but the rot commands don't seem to work for me.

Example
array=[1,2,3,4,5]
I would like the array to be placed in a for loop so it steps through each iteration
iteration1 of array=[2,3,4,5,1]
iteration2 of array=[3,4,5,1,2]
iteration3 of array=[4,5,1,2,3]
iteration4 of array=[5,1,2,3,4]

thanks

reply via email to

[Prev in Thread] Current Thread [Next in Thread]