All my commands end up in workspace
2 次查看(过去 30 天)
显示 更早的评论
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/718059/image.jpeg)
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.
0 个评论
采纳的回答
Steven Lord
2021-8-22
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
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Workspace Variables and MAT-Files 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!