Question: I built a matrix in MATLAB that is supposed to be all 1's; i.e. I have a constant 1x4 matrix. However, I need to add
I built a matrix in MATLAB that is supposed to be all 1's; i.e. I have a constant 1x4 matrix. However, I need to add 0's at the top and bottom of the matrix.
Supposedly I should use A = [0; A] and A = [A; 0], but that is not working when I prompt a display function. How do I do this?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
