my_func is a function as follows. What is the value of a at the end of the code beneath?
function a = my_func(a)
a = a + 1;
end
------------------
a = 0;
for i = 1:3
my_func(a);
end
a = my_func(a);
my_func is a function as follows. What is the value of a at the end of the code beneath?
function a = my_func(a)
a = a + 1;
end
------------------
a = 0;
for i = 1:3
my_func(a);
end
a = my_func(a);