Write a function that add two vectors and create a single ve

Write a function that add two vectors and create a single vector. Your function must have two inputs (the two vectors) and one output. ex: For the two inputs of [4,2,-1,6] and [7,3,10,-2,3,9] the output should look like [4,2,-1,6,7,3,10,-2,3,9] IN MATLAB

Solution

function f= conc(k1,k2)

f=[k1 k2];

end

Write a function that add two vectors and create a single vector. Your function must have two inputs (the two vectors) and one output. ex: For the two inputs of

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site