I have a array of indeces, so they must be positive, but some of them are negative, for instance for a array of m elements, I want to say if i=-1 put i=M-1, and if i=-2 put it M-2, how can I use circshift?
MATLAB: How to use circshift in matlab
priodic data
Related Question
- What is the number in a position in an array
- I m getting ‘subscript assignment dimension mismatch’ in the code in ‘line 18’
- Row circular shift in matrix
- Shifting signals to the right
- In an assignment A(I) = B, the number of elements in B and I must be the same.
- Shift array by one element backwards or forward
- Indexing a chunk of a of a multidimensional array using a vector of indices
Best Answer