MATLAB: Does the “Refresh Data” button in the property inspector refresh only the current plot in MATLAB 7.5 (R2007b)

datafigureinspectorMATLABpropertyrefresh

If I produce two plots using the following commands and open Plot Tools:
t = 0:0.1:100;
lowFreq = sin(t);
higFreq = sin(10*t);
figure;
plot(t,lowFreq)
plottools
figure;
plot(t,higFreq)
plottools
I then click on the line objects in each plot and specify a different "y-datasource" for each of the two plots. However, when I click on the "Refresh Data" button, I see that only the figure currently in focus is refreshed. In MATLAB 7.4 (R2007a), the "Refresh Data" button would update all open figures.

Best Answer

The behavior of the "Refresh Data" button in MATLAB 7.4 (R2007a) was unintended behavior which has been corrected for MATLAB 7.5 (R2007b). If you would still like to use the old behavior, you may use the REFRESHDATA function from the command line as follows:
figs = findall(0,'type','figure')
figs = mat2cell(figs)
refreshdata(figs)
This will refresh the data across all figures. For more information about the REFRESHDATA function please refer to the MATLAB documentation by entering the following command at the command prompt:
doc refreshdata