One solution :
>>fig = figure();
>>ax = axes(fig);
>>chasePlot(scenarioHandler, 'Parent', ax);
>>frame = getframe(ax);
>>frame
frame =
struct with fields:
cdata: [275×280×3 uint8]
colormap: []
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!