How to convert a cell into normal matrix?
    3 ビュー (過去 30 日間)
  
       古いコメントを表示
    
cell2mat is not working
1 件のコメント
  Jos (10584)
      
      
 2016 年 6 月 9 日
				Why not? It works perfectly on my computer ...
You have to show us the input, the code, the expected output and the error you get. Most of us here are not blessed with clairvoyance or other mindreading abilities.
回答 (1 件)
  Sachin Shrestha
      
 2016 年 6 月 9 日
        Hi Akhil,
If possible provide more details, the problem could be with the input that you have provided and the output that you are expecting; else cell2mat should work fine.
For e.g.
x_cell={1,2,3,4,5}; % cell
x_mat=cell2mat(x_cell); % after conversion to matrix
disp(sum(x_mat)); % sum the contents of matrix
Good Luck!
0 件のコメント
参考
カテゴリ
				Help Center および File Exchange で Numeric Types についてさらに検索
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


