svmtrain function is not working in my matlab 2016a.

4 views (last 30 days)
I want to run svmtrain function on 2016a version of matlab. what will do

Accepted Answer

Steven Lord
Steven Lord on 25 Apr 2018
Do you have Statistics and Machine Learning Toolbox installed? You can check this using the ver function. Since svmtrain is part of this toolbox, you must have that toolbox installed in order to use this function.
But if you have Statistics and Machine Learning Toolbox included in your installation, you might want to use the newer functions / classes introduced in release R2014a like fitcsvm, ClassificationSVM, and CompactClassificationSVM. This will be especially important if you want your code to work in release R2018a and later, as the Release Notes to which I linked indicate that svmtrain will error starting in release R2018a.
  8 Comments
Sajja Tulasi Krishna
Sajja Tulasi Krishna on 26 Apr 2018
what is y in it i don't know please solve this error

Sign in to comment.

More Answers (1)

farid jafary
farid jafary on 23 Apr 2020
Hi, does anyone have the MatLab PCA-LDA Code MATLAB code?

Community Treasure Hunt

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

Start Hunting!