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
- Fall '08
- Ring, Category theory, new number, r*c ~= vect_size