how to extract features stored in excel sheel for comparing data stored a variable.
Show older comments
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.
Answers (1)
Andrew Shum
on 13 Jun 2017
0 votes
6 Comments
hp
on 13 Jun 2017
Andrew Shum
on 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
on 14 Jun 2017
Edited: Image Analyst
on 17 Jun 2017
Andrew Shum
on 17 Jun 2017
You need to provide imwrite with the image data.
Image Analyst
on 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
on 19 Jun 2017
I haven't tested it but the documentation seems to disagree. You can use matrices without any() or all().
Categories
Find more on Spreadsheets in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!