This preview shows page 1. Sign up to view the full content.
Unformatted text preview: % ---- Calculation & Output Section ----if r*c ~= vect_size(1)*vect_size(2) disp('You must have the same number of terms in the reshaped vector as in the original vector.') else for y=1:c for x=1:r new_vector(x,y) = A(s,t); if s < vect_size(1) s = s + 1; else s = 1; t = t + 1; end end end end...
View Full Document
This note was uploaded on 02/12/2012 for the course ENGR 126 taught by Professor Oakes during the Fall '08 term at Purdue University-West Lafayette.
- Fall '08