필터 지우기
필터 지우기

Conversion to cell from double is not possible

조회 수: 2 (최근 30일)
Mahua Nandy(Pal)
Mahua Nandy(Pal) 2013년 3월 18일
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?

답변 (1개)

Leah
Leah 2013년 3월 18일
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
Jan
Jan 2013년 3월 18일
Most likely it should be:
mean_window = mean(mean(window));

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

카테고리

Help CenterFile Exchange에서 Data Type Conversion에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by