How to convert a table into an array
196 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Vinay Killamsetty
le 2 Oct 2019
Modifié(e) : Eugenio Grabovic
le 2 Oct 2019
I have uploaded my table here.
I just want to convert this table into an array.
I tried command like table2array but i am getting an error
Brace indexing is not supported for variables of this type.
Error in table2array (line 27)
a = t{:,:};
Error in Verification_test (line 85)
ff=table2array(ff1);
0 commentaires
Réponse acceptée
Eugenio Grabovic
le 2 Oct 2019
Modifié(e) : Eugenio Grabovic
le 2 Oct 2019
Zreal = Z_wires{:,1};
Zimg = Z_wires{:,2};
Zcomplex = Z_wires{:,3};
Z_wires_matrix = [Zreal, Zimg, Zcomplex]
or even just:
Z_wires_matrix = Z_wires{:,:};
0 commentaires
Plus de réponses (1)
the cyclist
le 2 Oct 2019
load 4layers_Z_wires.mat
table2array(Z_wires)
worked just fine for me.
0 commentaires
Voir également
Catégories
En savoir plus sur Matrices and Arrays dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!