hello i am having trouble with indexing methods pls help
how do i select the first element or any specific element and just change its place.
if i have an array like this
how do i select the first element, and change its place to either being after the number 5, or at the end.
without having 2 copys of that element.
so they look like this when i am done.
A=[2,3,4,5,1,6,7,8,9,10] or A=[2,3,4,5,6,7,8,9,10,1]
I ALSO NEED THIS FOR VERTICAL ARRAY (i mean 1 columb, and lost of rows) the transposed array of A is now called B
i had trouble using indexing, and circshift
i am looking for the most correct way.