How can I see variable's values in another subfunction?
조회 수: 2 (최근 30일)
이전 댓글 표시
I have a main function. The main function calls two subfunction sub_A and sub_B.And sub_A calls sub_C,sub_B calls sub_D. The question is if I stop in sub_D in debug mode and want to check a variable's value in sub_C, how can I do that? I know dbup and dbdown, but it seems only can check up and down in the same call stack. And what I figure out now is adding 'disp' in sub_C. Is there any way more elegance? Thanks for any advice.
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 基于问题的优化设置에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!