how to convert a structure array to numeric matrix

4 ビュー (過去 30 日間)
Asharani Shinde
Asharani Shinde 2017 年 12 月 22 日
編集済み: Stephen23 2017 年 12 月 24 日
I am trying to use fitcsvm function in Matlab 2014a to classify the features. I used Md1=fitcsvm(X,Y) to create a svm model where X is a array of feature images of .mat extension and Y is label array. now I am having error that X should be a numeric matrix.
  4 件のコメント
Stephen23
Stephen23 2017 年 12 月 24 日
Asharani Shinde's comment moved here:
Thus pls suggest me proper way to train the SVM and how to give test image to trained classifier and what will be the output? either it will give me matching class or matching image to query image.
Stephen23
Stephen23 2017 年 12 月 24 日
編集済み: Stephen23 2017 年 12 月 24 日
"In work-space it shows the X variable as structure type array"
You might just need to get one of the fields of X. Learn about structures by reading the MATLAB documentation:
especially the part on how to access the data in a structure.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeBig Data Processing についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by