フィルターのクリア

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 Center および File ExchangeEntering Commands についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by