How to save this model-learning-process animation figure as gif ?

Please try these lines as an example.
load(fullfile(matlabroot,'examples','stats','gprdata2.mat'));
gprMdl2 = fitrgp(x,y,'KernelFunction','squaredexponential',...
'OptimizeHyperparameters','auto','HyperparameterOptimizationOptions',...
struct('AcquisitionFunctionName','expected-improvement-plus'));
While running the second line, matlab will pop out two animation figures. How can I save them as GIF (so I can show in powerpoint)?
Thank you.

Categories

Products

Release

R2019b

Tags

Asked:

on 2 Oct 2019

Answered:

on 7 Nov 2019

Community Treasure Hunt

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

Start Hunting!