Placing breakpoint in subfunction
Show older comments
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;
Accepted Answer
More Answers (0)
Categories
Find more on Testing Frameworks in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!