how to solve the error
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
sakshi Garg
am 7 Apr. 2015
Beantwortet: James Tursa
am 7 Apr. 2015
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.
0 Kommentare
Akzeptierte Antwort
James Tursa
am 7 Apr. 2015
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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Structures finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!