I am beginner of Matlab, Please explain the following line. X = [X1 X2];
No products are associated with this question.
X1=12 X2=24 X = [X1 X2] % create a line vector X by horizontal concatenation; Y=[X1;X2] %vertical concatenation
You have to read this
That is the same as horzcat; see http://www.mathworks.com/help/matlab/ref/horzcat.html