i keep getting an error in my code about my array. pls help . code and error below thank you

1 visualización (últimos 30 días)
cp5ques2.PNG
  2 comentarios
Walter Roberson
Walter Roberson el 31 de Oct. de 2019
We have no information about the size of x, xold,vold, aold, xtip1, xorig1, xtip2, xorig2, U, T, Us, Up, E, or R1 .
alexis cordova
alexis cordova el 31 de Oct. de 2019
Xold, vold, aold, xtip1,2, xorig1,2 are all 2by1 . R1 is a 2x2. Rest are scalar just a number

Iniciar sesión para comentar.

Respuestas (1)

CAM
CAM el 31 de Oct. de 2019
When you are concatenating horizontally, the number of rows must be consistent. According to your comment, all variables are 1x1, but R1 is 2x2. Thus R1 is causing the error. Either change R1 to a single row, or put the variables into a cell array, which will allow for the different variable sizes.
Why are you taking the tranpose of scalers (xold', vold', ...) ?
  3 comentarios
alexis cordova
alexis cordova el 31 de Oct. de 2019
so my 2x1 are xold, vold, aold, xtip 1 , xtip 2 , xorig1, xorig 2, are 2 x1,
R1 is a 2x2
and the rest are scalars

Iniciar sesión para comentar.

Categorías

Más información sobre Matrices and Arrays en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by