Question: Here we will practice writing a simple function. Write a function that takes as input a column vector, and generates as output a column vector

Here we will practice writing a simple function. Write a
function that takes as input a column vector, and generates as output a column vector that is the
concatenation of the vector to itself. For example, if input is [5,4,3], then output is [5,4,
3,5,4,3]. If the input is not of size Nx1, display a message saying This function works only
for column vectors. Name the function Lab1 E

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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!