You can save your Trained model from workspace by right click and choose save.
Using
load('trainedModel.mat');
you can load your trained model in script when you need.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!