Cody

Problem 2598. What is the scope of variables in Matlab ?

How to do this little hack ?

a=10;

b=5;

y=change_var(a,1);

assert(isequal(a,1))

Solution Stats

31.91% Correct | 68.09% Incorrect
Last solution submitted on Apr 02, 2019