I would like to reuse a figure I create in Matlab script.
fig1 = figure;
plot(...);
title(...);
% ...
% now I would like to plot fig1 again with a different title
% ...
% now I would like to plot fig1 again as a subplot in a 2x2 grid
How can I do that without code duplication?
Can I use the figure object? Or perhaps save the plot object somehow?