how to extract features stored in excel sheel for comparing data stored a variable.
Ältere Kommentare anzeigen
I have stored some 12 image features into an excel sheet, I need to retrieve features row_by_row and compare these with the features stored in an variable.
Antworten (1)
Andrew Shum
am 13 Jun. 2017
0 Stimmen
6 Kommentare
hp
am 13 Jun. 2017
Andrew Shum
am 13 Jun. 2017
num_pages = length(filename);
This gets the length of the string 'filename' and assigns it to 'num_pages'. I am assuming your intent was to assign 'num_pages' the number of feature you are trying to retrieve? Is MatLab giving you any error messages?
hp
am 14 Jun. 2017
Bearbeitet: Image Analyst
am 17 Jun. 2017
Andrew Shum
am 17 Jun. 2017
You need to provide imwrite with the image data.
Image Analyst
am 17 Jun. 2017
Plus you need to use any() or all() in your for loop if you're going to be comparing a vector of values.
Andrew Shum
am 19 Jun. 2017
I haven't tested it but the documentation seems to disagree. You can use matrices without any() or all().
Kategorien
Mehr zu Spreadsheets finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!