Why does the "Refresh Data" button in the property inspector refresh only the current plot in MATLAB 7.5 (R2007b)?
8 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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.
Réponse acceptée
MathWorks Support Team
le 27 Juin 2009
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 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Graphics Objects dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!