Đỗ Huyền Trang
New member
What are the contents of a and b after the following events?
A. Error in the function
B. a=4,b=5
C. Enters debugging mode at b but a=4
D. Outputs are suppressed
Code:
Line 1: function p=avg(x)
Line 2: n = length(x);
Line 3: n=n+3
Command Window:
>> x=[1 2 3 5]
>> dbstop in avg if length(x)>4
>> a=avg(x);
>> x=[1 2 3 4 5];
>> b=avg(x);
B. a=4,b=5
C. Enters debugging mode at b but a=4
D. Outputs are suppressed