Use the {}Code format next time.
SVM command use
1 次查看(过去 30 天)
显示 更早的评论
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 ..
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrix Indexing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!