Info
此问题已关闭。 请重新打开它进行编辑或回答。
How to check the value of a varriable of a subfunction?
3 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
David Sanchez
2013-6-24
You can send the variable, from the local function, to the base workspace using assignin:
assignin('base', 'my_variable', Value_of_variable)
0 个评论
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!