필터 지우기
필터 지우기

how to solve the error

조회 수: 1 (최근 30일)
sakshi Garg
sakshi Garg 2015년 4월 7일
답변: James Tursa 2015년 4월 7일
while trying to run the code, following line was showing an error. Please help me solve it.
code line: Icrop=zeros(1,1000000); Icrop{i} =imcrop(data,bbox(1,:));
error: Cell contents assignment to a non-cell array object.

채택된 답변

James Tursa
James Tursa 2015년 4월 7일
This line defined Icrop as a double:
Icrop=zeros(1,1000000)
And the curly braces { } in this line use lcrop as a cell array:
Icrop{i} = etc.
That is causing the error. You can't index into Icrop as a cell array when it has been defined as a double.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Entering Commands에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by