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 0'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:
EECS 1560
makemat (1:5,1:10)
ans =
Introduction to Computing for Mathematics and Statistics
Introduction to Computing for Mathematics and Statistics
In vour script, test out your function with two input vectors: x1=1:6;x2=1:10;
 Write a function called makemat that will receive two row vectors

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To solve this problem we need to write a MATLAB function makemat that takes two row vectors as input... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!