Filter löschen
Filter löschen

cell2mat with 1* 1 cell array

3 Ansichten (letzte 30 Tage)
bugatti79
bugatti79 am 22 Okt. 2013
Kommentiert: Azzi Abdelmalek am 24 Okt. 2013
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 Kommentare
Matt Kindig
Matt Kindig am 22 Okt. 2013
Bearbeitet: Matt Kindig am 22 Okt. 2013
What about
B = cell2mat(A{ii})
bugatti79
bugatti79 am 22 Okt. 2013
Hi Matt,
This is what i had, doesnt work....

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Azzi Abdelmalek
Azzi Abdelmalek am 22 Okt. 2013
Type
A
whos A
what did you get?
  13 Kommentare
bugatti79
bugatti79 am 24 Okt. 2013
C needs to be a matrix not a single numeric value...
Azzi Abdelmalek
Azzi Abdelmalek am 24 Okt. 2013
Then just use
D{ii}= i.*n.*B{ii}.*C

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Data Type Conversion finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by