Conversion to cell from double is not possible
7 views (last 30 days)
Show older comments
Consider the following code: mean=mean(mean(window)); std_dev=std(std(double(window))); Output(i1,1)=mean_window; Output(i1,2)=std_dev;
The following error is coming: Conversion to cell from double is not possible.
How this can be removed?
0 Comments
Answers (1)
Leah
on 18 Mar 2013
It is very hard to tell your problem from this about of information. I can only guess that Output is a cell array and you are trying to place a the double value mean_window (again guessing) into it. You can either initialized Output as a matrix instead of a cell array or use this to reference the cell value
mean=mean(mean(window));
std_dev=std(std(double(window)));
Output{i1,1}=mean_window;
Output{i1,2}=std_dev;
1 Comment
See Also
Categories
Find more on Data Type Conversion in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!