Hi! It is my understanding that you want to do a grid search to optimize the hypermeters of SVM classifier.
Use the following file to optimize the hyperparameters.
To understand which arguments of the "fitcsvm" function can be optimized using grid search, you can refer to the following documentation https://www.mathworks.com/help/stats/fitcsvm.html#bt9w6j6-2