error in converting cell value

16 ビュー (過去 30 日間)
kash
kash 2012 年 1 月 6 日
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
  1 件のコメント
kash
kash 2012 年 1 月 6 日
THanks Titus

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Type Identification についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by