フィルターのクリア

cell2mat with 1* 1 cell array

3 ビュー (過去 30 日間)
bugatti79
bugatti79 2013 年 10 月 22 日
コメント済み: Azzi Abdelmalek 2013 年 10 月 24 日
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...
Azzi Abdelmalek
Azzi Abdelmalek 2013 年 10 月 24 日
Then just use
D{ii}= i.*n.*B{ii}.*C

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

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by