Error using vertcat Dimensions of matrices being concatenated are not consistent.
Afficher commentaires plus anciens
Good day. I am making a gui about the brayton cycle with input parameters. I am trying to display the previous parameters in a uitable but the error keeps popping out. This is the piece of code in my callback function.
Prev_val = [r_p,T_3c,n_comp * 100,n_turb * 100,n_th,W_net];
Prev_val = [Prev_val; get(handles.Prev_calc, 'data')];
set(handles.Prev_calc,'data',Prev_val);
When I run the program by commenting out line 2 first then bringing it back the error is not appearing.
Réponse acceptée
Plus de réponses (1)
KSSV
le 29 Déc 2016
[ones(2,1) ; ones(1,3)]
The above will throw a error, as dimensions are not compatible to join/concatenate. Where as the below
[ones(2,1) ; ones(3,1)]
works, as the dimensions of matrices are compatible to join. Check the dimensions of your matrices which you are joining.
Catégories
En savoir plus sur Data Type Identification dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
