Here's a complete example, using the following functions from the Bioinformatics Toolbox: SVMTRAIN, ...
stackoverflow.com