My workspace is completely empty

When i run the test function, nothing shows up in the workspace.
I want check the values of my variables but it just doesn't show anything at all.

 采纳的回答

Image Analyst
Image Analyst 2020-5-17

0 个投票

When the function is done running, the variables in the workspace vanish, as with any computer program. If you want to see what they are, make it a script by getting rid of the function line, and the final end statement. Or, you can put a breakpoint at the very last statement (pause).

3 个评论

I put a pause just before the end line, but the problem is still there
oh i can c the workspace now. Just have to remove the 1st and the last line, which are function and end lines. Thank you
I didn't say put a pause there - you already have a pause. I said put a break point there (click in the left margin to make a red spot) then run it.

请先登录,再进行评论。

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Entering Commands 的更多信息

产品

版本

R2020a

标签

Community Treasure Hunt

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

Start Hunting!

Translated by