MATLAB: Dimensions of matrices being concatenated are not consistent. why? :(

MATLAB: Dimensions of matrices being concatenated are not consistent. why? 🙁

dimensions of matrices being concatenated are not consistent

Trial>> syms a x y z
x= input(‘input x=’); y= input(‘input y=’); z= input(‘input z=’);
a=[5400/x,-2400/x,0; 0,-2400/y,4200/y,-1800/y; 0,-1800/z,1800/z]; input x=5 input y=6 input z=7 Error using vertcat Dimensions of matrices being concatenated are not consistent.

Best Answer

  • You have 4 column elements in the second row of ‘a’, while there are 3 elements in the other rows.
    You have to decide what you want ‘a’ to be.
  • Add a Comment

    Your email address will not be published. Required fields are marked *