Cody

Problem 43257. Persistence will not help you solve this problem.

Create a function without inputs that adds one to the output every time it is called. A different possibility of solving this has been eliminated from this problem.

a = counterfun;
disp(a)
>> 1
a = counterfun;
disp(a)
>> 2
% etc.

Solution Stats

71.43% Correct | 28.57% Incorrect
Last solution submitted on Feb 19, 2019

Problem Comments

Recent Solvers8

Suggested Problems

More from this Author16

Tags