3. Matrix variables. Make the following variables
aMar=[ matrix 2&...&2\\ vdots& vdots& vdots\\ 2&...&2 matrix ] a 9x9 matrix full of 2^ prime 5 (use ones or zeros)
a.
b. AAtre[ matrix 1&0&.&0\\ 0&..&0&.\\ ...&.&.&.\\ .&0&...&...\\ 0&-&0&1 matrix ]. [1 2 3 4 5 4 3 2 1] on the main diagonal (use zeros, diag) 9x9 matrix of all zeros, but with the values
c. 07=[ matrix 1&11&...&91\\ 2&12&...&92\\ vdots& vdots&& vdots\\ 10&20&...&100 matrix ]a 10*10n
columns (use reshape).
dMat=[ matrix NaN&NaN&NaN\\ NaN&NaN&NaN&NaN\\ NaN&NaN&NaN matrix ], d. 3x4 NaN matrix (use nan)
e. eMat = [[13, - 1, 5] [- 22, 10, - 87]]
f. Make Mar be a 5x3 matrix of random integers with values on the range -3 to 3 (First use rand and floor or ceil. Now only use randi)
Comments
Leave a comment