This preview shows page 1. Sign up to view the full content.
Unformatted text preview: shifted_vec=[row_vec(end-(shifts-1):end); row_vec(1:end-shifts)]; %shifts the vector shift times; we have to do end - (shift - 1) because %this will give us our starting position (just hard code examples and see %the pattern that occurs when you start indexing your answers relative to %your original array...
View Full Document
- Spring '08