MATLAB: What does y= [40;0] mean

vector

What does the following code mean?
y= [40;0];

Best Answer

It assigns ‘y’ to a (2x1) column vector, with the first row being 40 and the second row being 0.