how to extract features stored in excel sheel for comparing data stored a variable.
Mostrar comentarios más antiguos
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.
Respuestas (1)
Andrew Shum
el 13 de Jun. de 2017
0 votos
6 comentarios
hp
el 13 de Jun. de 2017
Andrew Shum
el 13 de Jun. de 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
el 14 de Jun. de 2017
Editada: Image Analyst
el 17 de Jun. de 2017
Andrew Shum
el 17 de Jun. de 2017
You need to provide imwrite with the image data.
Image Analyst
el 17 de Jun. de 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
el 19 de Jun. de 2017
I haven't tested it but the documentation seems to disagree. You can use matrices without any() or all().
Categorías
Más información sobre Spreadsheets en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!