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

2 ビュー (過去 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 Center および File ExchangeGraphics Objects についてさらに検索

製品


リリース

R2007b

Community Treasure Hunt

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

Start Hunting!

Translated by