cell2mat with 1* 1 cell array

1 次查看(过去 30 天)
Folks,
I have A{ii} which is a cell array 1*1 containing 18*9 matrix. I atttempt to convert to a matrix using B=cell2mat(A) but I get error stating
Cell contents reference from a non-cell array object.
I cannot change A{ii} to A(ii) is it violates
A(I) = B, the number of elements in B and
I must be the same.
Any ideas? Regards B
  2 个评论
Matt Kindig
Matt Kindig 2013-10-22
编辑:Matt Kindig 2013-10-22
What about
B = cell2mat(A{ii})
bugatti79
bugatti79 2013-10-22
Hi Matt,
This is what i had, doesnt work....

请先登录,再进行评论。

采纳的回答

Azzi Abdelmalek
Azzi Abdelmalek 2013-10-22
Type
A
whos A
what did you get?
  13 个评论
bugatti79
bugatti79 2013-10-24
C needs to be a matrix not a single numeric value...

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Cell Arrays 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by