Hey Adham,
To understand the use of fitcsvm to train and cross validate a SVM model, you can refer to the documentation provided by MathWorks where in the examples section you will find the use cases and demonstration of trining the model which is the functionality you are seeking.
Here is the link to the documentation:
Thanks.