error in converting cell value

15 views (last 30 days)
kash
kash on 6 Jan 2012
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

Accepted Answer

Titus Edelhofer
Titus Edelhofer on 6 Jan 2012
Hi,
A = cell2mat(a2.D1)
Titus

More Answers (0)

Categories

Find more on Data Type Identification in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!