Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

Variables are listed as outputs while debugging

1 visualizzazione (ultimi 30 giorni)
ayca
ayca il 6 Feb 2013
Chiuso: MATLAB Answer Bot il 20 Ago 2021
My problem is that when I want to observe a value of some variables in a function, put the break at the beginning of a certain line and execute the function up to that line, most variables that were calculated in the function show up listed in the workspace as outputs. Even the values of inputs are changed. Unlisted variables become passive and their values do not show up when I drag the mouse over them. Thanks in advance.
  1 Commento
Image Analyst
Image Analyst il 6 Feb 2013
I don't see any problem. Sounds like you just described the way it is supposed to, and does, operate.
Not sure what you mean by "unlisted" but if the value has not been assigned yet, then it doesn't exist yet, and hovering the mouse over it will not show any value for it because there is no value yet.

Risposte (2)

ayca
ayca il 6 Feb 2013
These "unlisted" variables have taken values lots of times during execution and those values have been used to calculate the values of "listed" variables. Neither they are listed, nor I can see their values with the cursor unlike the listed variables.
Until a couple of hours ago, I used to debug it and if I was sure that it was working right, then I used to put a break to a further line, press the up arrow in the command window and rework it. Now after every execution, I have to clear the workspace first and load the input file again and then do the same thing.

Walter Roberson
Walter Roberson il 7 Feb 2013
I am going to speculate that you are describing the same behavior as this recent question

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by