Effacer les filtres
Effacer les filtres

All my commands end up in workspace

2 vues (au cours des 30 derniers jours)
Stanley Zhu
Stanley Zhu le 22 Août 2021
Commenté : Stanley Zhu le 22 Août 2021
After I added data to my workspace, whenever I do anything, it just ends up being added to the workspace area instead of getting executed, how do I fix this.

Réponse acceptée

Steven Lord
Steven Lord le 22 Août 2021
Your last three lines create variables that shadow the title, xlabel, and ylabel functions rather than calling those funcions. Instead those lines should look like the plot command on the line right before it, without the equals signs.
title('abc') % Calls the function
title = ('abc') % Creates a variable and prevents you from calling the function
  1 commentaire
Stanley Zhu
Stanley Zhu le 22 Août 2021
I can't believe I didn't see that, thanks

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Workspace Variables and MAT-Files dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by