Question: Write a function called makemat that will receive two row vectors as input arguments, and from them create and return a matrix with two rows.

Write a function called "makemat" that will receive two row vectors as input arguments, and from them create and return a matrix with two rows. You may not assume that the length of the vectors is known. Also, the vectors may be of different lengths. If that is the case, add O's to the end of one vector first to make it as long as the other. For example, a call to the function might be: >>makemat (1:4, 2:7 ans
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
