Code was working fine, Same code is giving error 'Undefined function or variable 'pixelList'.
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
TRK
am 9 Nov. 2018
Kommentiert: Walter Roberson
am 9 Nov. 2018
On the attached code I am trying to identify the number of pixel values below and above the threshold which is median value of the pixelvalues in this case. The code was working fine. But now it is giving me error "Undefined function or variable 'pixelList'." Can anyone help me why I am having this error. Also I put the values in struct and tried to write it in excel file. But it is only writing one images information in the file , I have 67 image files in the folder.
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 9 Nov. 2018
Change
s(k).numberOfPixels = numel(pixelList);
To
s(k).numberOfPixels = numel(s(k).pixelList);
2 Kommentare
Walter Roberson
am 9 Nov. 2018
Your writetable is inside the loop and you are not providing a range, so you would overwrite the file each time.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Spreadsheets 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!