All my commands end up in workspace

조회 수: 1 (최근 30일)
Stanley Zhu
Stanley Zhu 2021년 8월 22일
댓글: Stanley Zhu 2021년 8월 22일
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.

채택된 답변

Steven Lord
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
  댓글 수: 1
Stanley Zhu
Stanley Zhu 2021년 8월 22일
I can't believe I didn't see that, thanks

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile 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!

Translated by