Why does the "Refresh Data" button in the property inspector refresh only the current plot in MATLAB 7.5 (R2007b)?

조회 수: 3 (최근 30일)
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.

채택된 답변

MathWorks Support Team
MathWorks Support Team 2009년 6월 27일
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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Graphics Objects에 대해 자세히 알아보기

제품


릴리스

R2007b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by