i keep getting an error in my code about my array. pls help . code and error below thank you
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
![cp5ques2.PNG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/245819/cp5ques2.png)
2 Commenti
Walter Roberson
il 31 Ott 2019
We have no information about the size of x, xold,vold, aold, xtip1, xorig1, xtip2, xorig2, U, T, Us, Up, E, or R1 .
Risposte (1)
CAM
il 31 Ott 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 Commenti
Vedere anche
Categorie
Scopri di più su Matrices and Arrays in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!