How to find index of a cell in matlab?

1 回表示 (過去 30 日間)
S.A
S.A 2018 年 4 月 2 日
回答済み: William Smith 2018 年 4 月 3 日
Hello, I'm working on my project for matching of sketches to photos. I have done with feature extraction part using SURF. In the final step I need to match 10 sketches with 30 photos based on ranking using euclidean distance. I'm getting the output which is correct but partial. The index values are just getting stored for the 10th field, its not getting displayed or stored from 1 to 9 and its stored with value as 0's. I have attached that part of code module and image of output cell matrix here.

回答 (1 件)

William Smith
William Smith 2018 年 4 月 3 日
Why are you doing
[sd,Mayindex(10,:)]=sort(d);
Why not
[sd, MayIndex] = sort(d);

カテゴリ

Help Center および File ExchangeMatrix Indexing についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by