Problem 43222. Persistence will help you solve almost any problem.

Create a function without inputs that adds one to the output every time it is called.

a = counterfun;
>> 1
a = counterfun;
>> 2
% etc.

Solution Stats

72.5% Correct | 27.5% Incorrect
Last Solution submitted on Jun 27, 2018

Solution Comments

Problem Recent Solvers16

Suggested Problems

More from this Author16

Problem Tags