error in converting cell value

15 次查看(过去 30 天)
I have values a2
a2=load('Dist1.mat')
i i load i get value as
a2=
D1: {1x80 cell}
i coverted it to A = cell2mat(a2)
but i get error as
Cell contents reference from a non-cell array object.
Error in ==> cell2mat at 38
if isnumeric(c{1}) || ischar(c{1}) || islogical(c{1})
|| isstruct(c{1})
Error in ==> Main_Dis at 30
A = cell2mat(a2)
please tell how to display those values in command

采纳的回答

Titus Edelhofer
Titus Edelhofer 2012-1-6
Hi,
A = cell2mat(a2.D1)
Titus

更多回答(0 个)

类别

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

标签

Community Treasure Hunt

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

Start Hunting!

Translated by