This preview shows page 1. Sign up to view the full content.
Unformatted text preview: Store your % answer in the variable "E". E = [mat1; mat2]; % (e) Take the top half of the array stored in the variable % "mat2"- that is, take all of the columns and the first half of the % rows. Store your answer in the variable "F". F = mat2(1:round(end/2),:); % (f) Transpose "mat2". Save your answer in the variable "G". G = mat2'; % (g) Linearize "mat1". "mat1" should go from a MxN array to a (M*N)x1 % array. Store your answer in "H". H = mat1(:);...
View Full Document
- Spring '08