refreshdata, clf, "clear all output"
33 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
alpedhuez
le 18 Déc 2020
Modifié(e) : KALYAN ACHARJYA
le 18 Déc 2020
What are the relationship of
'clear all output' https://www.mathworks.com/matlabcentral/answers/475826-clear-all-output-code
?
0 commentaires
Réponse acceptée
KALYAN ACHARJYA
le 18 Déc 2020
Modifié(e) : KALYAN ACHARJYA
le 18 Déc 2020
Refreshdata: refreshdata updates charted data in the current figure to reflect changes in workspace variables
Clf: clf deletes from the current figure all graphics objects
'clear all output' Which coding function?
More see
clear; % Clear workspace variables
More: Clear all: Clears Variables, Scripts and functions Class definitions, Persistent variables, MEX functions, Global variables etc
Alert: Calling clear all decreases code performance, and is usually unnecessary.
2 commentaires
Rik
le 18 Déc 2020
@Kalyan, clear all clears much more than just variables. That is why mlint will warn you not to use it. Please edit your question to avoid perpetuating this bad practice.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Whos 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!