MATLAB: Error using vertcat – dimensions of matrices being concatenated are not consistent

dimensionserroronesvertcat

Hi,
I keep getting this error, Error using vertcat – dimensions of matrices being concatenated are not consistent This is my code
W = [ones(1,56);1.41*ones(1,37);0.71*ones(1,16)];

Best Answer

Oh, what I actually wanted to do is have one row of all these values, how would I do that?