MATLAB: Change the name of a figure in a Correlation plot

correlation plotsfigure names

I need to change either the name of the figure or the title of the figure of my correlation plot (which is a correlation matrix). I tried to change the name of the figure but when I run the code it creates 2 figures: one with the new nane and another one with the correlation plot. I already try the hold on/ hold off function but it does not seem to work.
figure('Name','Refined data','NumberTitle','off');
corrplot(Corr,'varNames',{(x_input_plot),(y_input_plot)});
Thanks for any help ๐Ÿ™‚

Best Answer

Just set the name of your figure by
set(gcf,'Name','string')