필터 지우기
필터 지우기

Why is nothing being stored in the "Workspace" after I run my code?

조회 수: 15 (최근 30일)
Recap
Recap 2016년 3월 24일
댓글: Mohamad Ghaddar 2021년 2월 15일
I have a video processing code, its an ALPR program I am working on. But every time I run the code, none of the usual stuff that is stored in the Workspace of Matlab is getting stored. What could be the cause of this?
  댓글 수: 1
Stephen23
Stephen23 2016년 3월 24일
Every function has its own workspace. This is a good thing, because it keep different code from affecting each other. You simply need to pass the desired variables as input and output arguments.

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

채택된 답변

Image Analyst
Image Analyst 2016년 3월 24일
You're running a function instead of a script. The variables in the function are local and vanish once you exit the function. If you want to see what their values are, set a breakpoint on the last line of your function, just before it exits.

추가 답변 (1개)

Stalin Samuel
Stalin Samuel 2016년 3월 24일
Possibly if you run the functions the variables will not stored in work space. Only the returned variables stored .If you not returned any values then nothing will be stored

카테고리

Help CenterFile Exchange에서 Matrix Indexing에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by