How to convert a table into an array

529 次查看(过去 30 天)
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);

采纳的回答

Eugenio Grabovic
Eugenio Grabovic 2019-10-2
编辑:Eugenio Grabovic 2019-10-2
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{:,:};

更多回答(1 个)

the cyclist
the cyclist 2019-10-2
load 4layers_Z_wires.mat
table2array(Z_wires)
worked just fine for me.

类别

Help CenterFile Exchange 中查找有关 Data Type Conversion 的更多信息

标签

产品


版本

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by