필터 지우기
필터 지우기

How would i do it in matlab?

조회 수: 1 (최근 30일)
Sheema Khattak
Sheema Khattak 2014년 4월 27일
답변: Apdullah YAYIK 2014년 4월 27일
How would images be assigned numerical values in matrices for classification multiclass svm in matlab? How would I specify that group 1=apple,group 2 = orange and group3=banana?
  댓글 수: 1
dpb
dpb 2014년 4월 27일
Not fully clear but if have Statistics Toolbox, look at
doc nominal

댓글을 달려면 로그인하십시오.

답변 (1개)

Apdullah YAYIK
Apdullah YAYIK 2014년 4월 27일
You have 1x1 features of different types of images. Rename them as "featureset_image"
Add class information as numeric to feature matrix with "dataset" function
If you have 500 apple, 500 banana and 500 orange your class vector is;
class=[ones(1,500)';2*ones(1,500)';3*ones(1,500)];
And DataSet is
dataset_image=dataset(featureset_image, class)

카테고리

Help CenterFile Exchange에서 Statistics and Machine Learning Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by