Info
This question is closed. Reopen it to edit or answer.
How to check the value of a varriable of a subfunction?
1 view (last 30 days)
Show older comments
I've a function that calls another function. I can debug the program but I can't check the value of any variable of the called function after debugging. It shows me error. How can I do it?
0 Comments
Answers (1)
David Sanchez
on 24 Jun 2013
You can send the variable, from the local function, to the base workspace using assignin:
assignin('base', 'my_variable', Value_of_variable)
0 Comments
This question is closed.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!