Nhật Hương
Member
What are the contents of a after the following events?
A. 8
B. Enters debugging mode after execution of the last line
C. Enters debugging mode at the first line only
D. Enters debugging mode at the 2$^{nd}$ line
Code:
Line 1: function p=avg(x)
Line 2: n = length(x);
Line 3: n=n+3
Command Window:
>> x=[1 2 3 4 5]
>> dbstop in avg if length(x)>4
>> a=avg(x)
B. Enters debugging mode after execution of the last line
C. Enters debugging mode at the first line only
D. Enters debugging mode at the 2$^{nd}$ line