Cody

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

Created by Marc Jakobi in Community

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

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

Solution Stats

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

Solution Comments