Cody

Solution 1532598

Submitted on 17 May 2018 by William
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
assert(isequal(numfig(),0))

2   Pass
close all; figure; assert(isequal(numfig(),1))

Png;base64,ivborw0kggoaaaansuheugaaakcaaag1caiaaab8k8cvaaafjuleqvr42u3vmq0aaazdspin3alym9kq8iqfgc8iaqcubgcubgcubgcubocraycraycraycraycraebqaobqaobqaobqalgaalgaalgaalgaalgaak4gak4gak4gak4gak4ggksbgksbgksbgksb4goa4goa4goa4goa4goauboauboauboauboargyargyargyargyargaaqwgaqwgaqwgaqwgaqwhgagdgagdgagdgagc4ggc4ggc4ggc4ggc4ggcubgcubgcubgcubocraycraycraycraycraebqaobqaobqaobqaobqalgaalgaalgaalgaak4gak4gak4gak4gak4ggksbgksbgksbgksb4goa4goa4goa4goa4goauboauboauboauboauboargyargyargyargaaqwgaqwgaqwgaqwgaqwhgagdgagdgagdgagc4ggc4ggc4ggc4ggc4ggcubgcubgcubgcubgcubocraycraycraycraebqaobqaobqaobqaobqalgaalgaalgaalgaak4maqcubgcubgcubgcubocraycraycraycraycraebqaobqaobqaobqalgaalgaalgaalgaalgaak4gak4gak4gak4gak4ggksbgksbgksbgksb4goa4goa4goa4goa4goauboauboauboauboargyargyargyargyargaaqwgaqwgaqwgaqwgaqwhgagdgagdgagdgagc4ggc4ggc4ggc4ggc4ggcubgcubgcubgcubocraycraycraycraycraebqaobqaobqaobqaobqalgaalgaalgaalgaak4gak4gak4gak4gak4ggksbgksbgksbgksb4goa4goa4goa4goa4goauboauboauboauboauboargyargyargyargaaqwgaqwgaqwgaqwgaqwhgagdgagdgagdgagc4ggc4ggc4ggc4ggc4ggcubgcubgcubgcubgcubocraycraycraycraebqaobqaobqaobqaobqalgaalgaalgaalgaak4maqcubgcubgcubgcubocraycraycraycraycraebqaobqaobqaobqalgaalgaalgaalgaalgaak4gak4gak4gak4gak4ggksbgksbgksbgksb4goa4goa4goa4goa4goauboauboauboauboargyargyargyargyargaaqwgaqwgaqwgaqwgaqwhgagdgagdgagdgagc4ggc4ggc4ggc4ggc4ggcubgcubgcubgcubocraycraycraycraycraebqaobqaobqaobqaobqalgaalgaalgaalgaak4gak4gak4gak4gak4ggksbgksbgksbgksb4goa4goa4goa4goa4goauboauboauboauboauboargyargyargyargaaqwgaqwgaqwgaqwgaqwhgagdgagdgagdgagc4ggc4ggc4ggc4ggc4ggcubgcubgcubgcubgcubocraycraycraycraebqaobqaobqaobqaobqalgaalgaalgaalgaak4maqcubgcubgcubgcubocraycraycraycraycraebqaobqaobqaobqalgaalgaalgaalgaalgaak4gak4gak4gak4gak4ggksbgksbgksbgksb4goa4goa4goa4goa4goauboauboauboauboargyargyargyargyargaaqwgaqwgaqwgaqwgaqwhgagdgagbwaguanaogdp84aaaaaelftksuqmcc"}]
3   Pass
close all; figure; figure; assert(isequal(numfig(),2))

Png;base64,ivborw0kggoaaaansuheugaaakcaaag1caiaaab8k8cvaaafjuleqvr42u3vmq0aaazdspin3alym9kq8iqfgc8iaqcubgcubgcubgcubocraycraycraycraycraebqaobqaobqaobqalgaalgaalgaalgaalgaak4gak4gak4gak4gak4ggksbgksbgksbgksb4goa4goa4goa4goa4goauboauboauboauboargyargyargyargyargaaqwgaqwgaqwgaqwgaqwhgagdgagdgagdgagc4ggc4ggc4ggc4ggc4ggcubgcubgcubgcubocraycraycraycraycraebqaobqaobqaobqaobqalgaalgaalgaalgaak4gak4gak4gak4gak4ggksbgksbgksbgksb4goa4goa4goa4goa4goauboauboauboauboauboargyargyargyargaaqwgaqwgaqwgaqwgaqwhgagdgagdgagdgagc4ggc4ggc4ggc4ggc4ggcubgcubgcubgcubgcubocraycraycraycraebqaobqaobqaobqaobqalgaalgaalgaalgaak4maqcubgcubgcubgcubocraycraycraycraycraebqaobqaobqaobqalgaalgaalgaalgaalgaak4gak4gak4gak4gak4ggksbgksbgksbgksb4goa4goa4goa4goa4goauboauboauboauboargyargyargyargyargaaqwgaqwgaqwgaqwgaqwhgagdgagdgagdgagc4ggc4ggc4ggc4ggc4ggcubgcubgcubgcubocraycraycraycraycraebqaobqaobqaobqaobqalgaalgaalgaalgaak4gak4gak4gak4gak4ggksbgksbgksbgksb4goa4goa4goa4goa4goauboauboauboauboauboargyargyargyargaaqwgaqwgaqwgaqwgaqwhgagdgagdgagdgagc4ggc4ggc4ggc4ggc4ggcubgcubgcubgcubgcubocraycraycraycraebqaobqaobqaobqaobqalgaalgaalgaalgaak4maqcubgcubgcubgcubocraycraycraycraycraebqaobqaobqaobqalgaalgaalgaalgaalgaak4gak4gak4gak4gak4ggksbgksbgksbgksb4goa4goa4goa4goa4goauboauboauboauboargyargyargyargyargaaqwgaqwgaqwgaqwgaqwhgagdgagdgagdgagc4ggc4ggc4ggc4ggc4ggcubgcubgcubgcubocraycraycraycraycraebqaobqaobqaobqaobqalgaalgaalgaalgaak4gak4gak4gak4gak4ggksbgksbgksbgksb4goa4goa4goa4goa4goauboauboauboauboauboargyargyargyargaaqwgaqwgaqwgaqwgaqwhgagdgagdgagdgagc4ggc4ggc4ggc4ggc4ggcubgcubgcubgcubgcubocraycraycraycraebqaobqaobqaobqaobqalgaalgaalgaalgaak4maqcubgcubgcubgcubocraycraycraycraycraebqaobqaobqaobqalgaalgaalgaalgaalgaak4gak4gak4gak4gak4ggksbgksbgksbgksb4goa4goa4goa4goa4goauboauboauboauboargyargyargyargyargaaqwgaqwgaqwgaqwgaqwhgagdgagbwaguanaogdp84aaaaaelftksuqmcc"}]
4   Pass
close all; figure; figure; plot(1,1); figure; imagesc(magic(5)); assert(isequal(numfig(),3))

Rw0axwuhr4t1zq+ilgatfwulh+irpgvjpvxxx9ddfnowy04lejynovjnz17dpyvyh5lug+pocxibcen7cpddsalsscnqkmsqczjetuksakajelukyrrtzikqkmsrdvjkqgmsrlvjelukysjapikuu2sjkpjkqgmsrlvjemimirjvjmkiwqsjkpjkkq1szkojkks1srjopokiwqsjffnkisqszjenuks1srjas3+h+rif9zbxcnvaaaaaelftksuqmcc"}]
5   Pass
close all; n = randi(20); for ii=1:n figure; end assert(isequal(numfig(),n))

Png;base64,ivborw0kggoaaaansuheugaaakcaaag1caiaaab8k8cvaaafjuleqvr42u3vmq0aaazdspin3alym9kq8iqfgc8iaqcubgcubgcubgcubocraycraycraycraycraebqaobqaobqaobqalgaalgaalgaalgaalgaak4gak4gak4gak4gak4ggksbgksbgksbgksb4goa4goa4goa4goa4goauboauboauboauboargyargyargyargyargaaqwgaqwgaqwgaqwgaqwhgagdgagdgagdgagc4ggc4ggc4ggc4ggc4ggcubgcubgcubgcubocraycraycraycraycraebqaobqaobqaobqaobqalgaalgaalgaalgaak4gak4gak4gak4gak4ggksbgksbgksbgksb4goa4goa4goa4goa4goauboauboauboauboauboargyargyargyargaaqwgaqwgaqwgaqwgaqwhgagdgagdgagdgagc4ggc4ggc4ggc4ggc4ggcubgcubgcubgcubgcubocraycraycraycraebqaobqaobqaobqaobqalgaalgaalgaalgaak4maqcubgcubgcubgcubocraycraycraycraycraebqaobqaobqaobqalgaalgaalgaalgaalgaak4gak4gak4gak4gak4ggksbgksbgksbgksb4goa4goa4goa4goa4goauboauboauboauboargyargyargyargyargaaqwgaqwgaqwgaqwgaqwhgagdgagdgagdgagc4ggc4ggc4ggc4ggc4ggcubgcubgcubgcubocraycraycraycraycraebqaobqaobqaobqaobqalgaalgaalgaalgaak4gak4gak4gak4gak4ggksbgksbgksbgksb4goa4goa4goa4goa4goauboauboauboauboauboargyargyargyargaaqwgaqwgaqwgaqwgaqwhgagdgagdgagdgagc4ggc4ggc4ggc4ggc4ggcubgcubgcubgcubgcubocraycraycraycraebqaobqaobqaobqaobqalgaalgaalgaalgaak4maqcubgcubgcubgcubocraycraycraycraycraebqaobqaobqaobqalgaalgaalgaalgaalgaak4gak4gak4gak4gak4ggksbgksbgksbgksb4goa4goa4goa4goa4goauboauboauboauboargyargyargyargyargaaqwgaqwgaqwgaqwgaqwhgagdgagdgagdgagc4ggc4ggc4ggc4ggc4ggcubgcubgcubgcubocraycraycraycraycraebqaobqaobqaobqaobqalgaalgaalgaalgaak4gak4gak4gak4gak4ggksbgksbgksbgksb4goa4goa4goa4goa4goauboauboauboauboauboargyargyargyargaaqwgaqwgaqwgaqwgaqwhgagdgagdgagdgagc4ggc4ggc4ggc4ggc4ggcubgcubgcubgcubgcubocraycraycraycraebqaobqaobqaobqaobqalgaalgaalgaalgaak4maqcubgcubgcubgcubocraycraycraycraycraebqaobqaobqaobqalgaalgaalgaalgaalgaak4gak4gak4gak4gak4ggksbgksbgksbgksb4goa4goa4goa4goa4goauboauboauboauboargyargyargyargyargaaqwgaqwgaqwgaqwgaqwhgagdgagbwaguanaogdp84aaaaaelftksuqmcc"}]
6   Pass
close all; assert(isequal(numfig(),0))