SVM command use

조회 수: 5 (최근 30일)
Max
Max 2011년 11월 14일
hello , i have a following data set in the matrix from .. the first coloumn is a voltage reading..and the other is a corresponding angles . the third one is a category safe or unsafe . i have to classify the data between the safe and the unsafe one .
voltage angles category
X= [ 1.0115 0 safe;
1.0131 0 safe;
1.0191 0 safe;
1.0209 0 safe;
1.0389 0 safe;
1.0410 0 safe;
1.0461 0 safe;
1.0461 0 safe;
1.0462 0 safe;
1.0474 0 safe;
1.0066 -0.0686 unsafe;
1.0265 -0.0655 unsafe;
1.0320 -0.0637 unsafe;
1.0352 -0.0634 unsafe;
1.0381 -0.0516 unsafe;
1.0397 -0.0409 unsafe;
1.0418 -0.0248 unsafe;
1.0485 -0.0171 unsafe];
I have to use the support vector machine svmstruct command to classify the data into safe and unsafe zones ....in simple i have to plot a line on a graph such that the first 10 values of the voltage and the angles which are in safe zone gets seprated from the unsafe zone .. i.e plot a line between safe and unsafe values..some thing similar to the matlab example performed on the IRIS flower data set ..
  댓글 수: 1
Fangjun Jiang
Fangjun Jiang 2011년 11월 14일
Use the {}Code format next time.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Colormaps에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by