Question: Write a user-defined function which accepts two same sized vectors as input arguments and returns a matrix as output argument. Your function should first check

Write a user-defined function which accepts two same sized vectors as input arguments and returns a matrix as output argument. Your function should first check if the input arguments are really a vector. If one of the input vectors is a scalar or matrix, an error message should be displayed. Your function should then combine these vectors by merging them horizontally if they are vertical vectors, and vertically if they are horizontal vectors and should give the result as the output matrix. in math Lab
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
