Placing breakpoint in subfunction
古いコメントを表示
I wrote a simple program in Matlab with a main function and a subfunction. However, when I run the program, the subfunction doesn't seem to get recognized. For example, when I place a breakpoint to the left of where I defined "B" and click Run, I don't get the k>> prompt in the command window.
The code is as follows:
function test
global A;
A = 5;
function test2
B = 6;
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Testing Frameworks についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!