%% Train Agent
doTraining = false;
% Train the agent
trainingStats = train(agent,env,trainOpts);
% Load pretrained agent for the example
warning: Variable 'agent' not found
but the demo 'rlQuadrupedAgent.mat' is ok, why? how it works correctly and allow me to test candidate agents generated during a long-running training process?