how to extract features stored in excel sheel for comparing data stored a variable.
이전 댓글 표시
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.
답변 (1개)
Andrew Shum
2017년 6월 13일
0 개 추천
댓글 수: 6
hp
2017년 6월 13일
Andrew Shum
2017년 6월 13일
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
2017년 6월 14일
편집: Image Analyst
2017년 6월 17일
Andrew Shum
2017년 6월 17일
You need to provide imwrite with the image data.
Image Analyst
2017년 6월 17일
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
2017년 6월 19일
I haven't tested it but the documentation seems to disagree. You can use matrices without any() or all().
카테고리
도움말 센터 및 File Exchange에서 Spreadsheets에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!