error-using cell2mat

조회 수: 1 (최근 30일)
FIR
FIR 2012년 2월 18일
I have co-efficients in W,i want to convert in into matrix,if i use cell2mat(W),i get error as
Cannot support cell arrays containing cell arrays or objects.
please help
x=imread('st.tif');
x=rgb2gray(x);
x=double(x);
[Faf, Fsf] = FSfarras;
[af, sf] = dualfilt1;
J = 4;
T = 10;
[r c ]=size(x)
W = dualtree2D(x,J,Faf,af);
  댓글 수: 2
Walter Roberson
Walter Roberson 2012년 2월 18일
Already discussed in threads in your "kash" account.
FIR
FIR 2012년 2월 18일
But walter as u said
f all the dimensions are not equal, then you will need to specify the output format you want.
If all the dimensions are equal at all levels, start at the innermost cell and cell2mat that, and having done that for all of the cells, go up one level and cell2mat _that_ and do that for all the cells at that level... then go to the level above and cell2mat again... and keep going until you end up with just a matrix.
please tell how to perform it ,

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Particle & Nuclear Physics에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by