refreshdata, clf, "clear all output"

34 visualizaciones (últimos 30 días)
alpedhuez
alpedhuez el 18 de Dic. de 2020
Editada: KALYAN ACHARJYA el 18 de Dic. de 2020

Respuesta aceptada

KALYAN ACHARJYA
KALYAN ACHARJYA el 18 de Dic. de 2020
Editada: KALYAN ACHARJYA el 18 de Dic. de 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 comentarios
Rik
Rik el 18 de Dic. de 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.
KALYAN ACHARJYA
KALYAN ACHARJYA el 18 de Dic. de 2020
@Rik, Thank you for pointing this out. much appreciated.

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by