rotateVec - %finds the number of shifts actually performed...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
function shifted_vec=rotateVec(row_vec,number_shifts) %function to barrel shift on the vector by that number %usage: shifted_vec=rotateVec(row_vec,number_shifts) shifts = mod(number_shifts,length(row_vec));
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: %finds the number of shifts actually performed on the vector shifted_vec=[row_vec(end-(shifts-1):end); row_vec(1:end-shifts)];...
View Full Document

Ask a homework question - tutors are online