Hi, I am new to Matlab and I'm trying to use it as a tool to create a model.
I have two vectors, both of them are <1×6001> double,
x=(x1,x2,x3…)
y=(y1,y2,y3…)
but what I need is to merge them as one in the following way:
z=(x1,y1;x2,y2;x3,y3…,xn;yn) – comma separates the elements, and semicolon separates the pairs.
so that I can use it as input data.
Is there a way to do it?
Best Answer