I have a fixed sized array in Matlab. When I want to insert a new element I do the following:
- To make room first array element will be overwritten
- Every other element will be shifted at new location
index-1
---left shift.
- The new element will be inserted at the place of last element which becomes empty by shifting the elements.
I would like to do it without using any loops.
задан David Heffernan 11 April 2011 в 19:23
поделиться