how to convert cell to mat
4 ビュー (過去 30 日間)
古いコメントを表示
I have a cell array of size h=4X1. Inside it has 4 different matrices of size 32X64. How to convert it to matrix. I used htemp=cell2mat(h). Now the size is 128x64. After that i try to separate the real and imaginary parts of htemp using htempreal=zeros(128,64,2). then htempreal(:,:,1)=real(htemp) and htempreal(:,:,2)=imag(htemp). at this point it shows error unable to perform assignment because the size of the left side is 128 by 64 and the size of the right side is 32 by 64.
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!