Cody

Solution 1531483

Submitted on 17 May 2018 by bainhome
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,ivborw0kggoaaaansuheugaaakkaaag3caiaaaavklaxaaaflkleqvr42u3vqreaaazcmpybbgctsesk9nmuah6jbab4gwb4gwb4gwb4gwb4gwdebgdebgdebgdebgdeboc3ayc3ayc3ayc3ayc3aebtaobtaobtaobtaobtahgbahgbahgbahgbahgban4gan4gan4gan4gan4gglcbglcbglcbglcbglcbglcb4g0a4g0a4g0a4g0a4g0aebsaebsaebsaebsaebsa3gya3gya3gya3gya3gaatwgatwgatwgatwgatwhgbqdgbqdgbqdgbqdgbqb4gwb4gwb4gwb4gwb4gwb4gwdebgdebgdebgdebgdeboc3ayc3ayc3ayc3ayc3aebtaobtaobtaobtaobtahgbahgbahgbahgbahgban4gan4gan4gan4gan4gglcbglcbglcbglcbglcbglcb4g0a4g0a4g0a4g0a4g0aebsaebsaebsaebsaebsa3gya3gya3gya3gya3gaatwgatwgatwgatwgatwhgbqdgbqdgbqdgbqdgbqb4gwb4gwb4gwb4gwb4gwdejgea3gya3gya3gya3gya3gaatwgatwgatwgatwgatwhgbqdgbqdgbqdgbqdgbqb4gwb4gwb4gwb4gwb4gwdebgdebgdebgdebgdeboc3ayc3ayc3ayc3ayc3aebtaobtaobtaobtaobtaobtahgbahgbahgbahgbahgban4gan4gan4gan4gan4gglcbglcbglcbglcbglcb4g0a4g0a4g0a4g0a4g0aebsaebsaebsaebsaebsa3gya3gya3gya3gya3gya3gaatwgatwgatwgatwgatwhgbqdgbqdgbqdgbqdgbqb4gwb4gwb4gwb4gwb4gwdebgdebgdebgdebgdeboc3ayc3ayc3ayc3ayc3aebtaobtaobtaobtaobtaobtahgbahgbahgbahgbahgban4gan4gan4gan4gan4gglcbglcbglcbglcbglcb4g0a4g0a4g0a4g0a4g0aebsaebsaebsaebsaebsa3gya3gya3gya3gya3gaat0kaglcbglcbglcbglcbglcb4g0a4g0a4g0a4g0a4g0aebsaebsaebsaebsaebsa3gya3gya3gya3gya3gaatwgatwgatwgatwgatwhgbqdgbqdgbqdgbqdgbqb4gwb4gwb4gwb4gwb4gwb4gwdebgdebgdebgdebgdeboc3ayc3ayc3ayc3ayc3aebtaobtaobtaobtaobtahgbahgbahgbahgbahgban4gan4gan4gan4gan4gglcbglcbglcbglcbglcbglcb4g0a4g0a4g0a4g0a4g0aebsaebsaebsaebsaebsa3gya3gya3gya3gya3gaatwgatwgatwgatwgatwhgbqdgbqdgbqdgbqdgbqb4gwb4gwb4gwb4gwb4gwb4gwdebgdebgdebgdebgdeboc3ayc3ayc3ayc3ayc3aebtaobtaobtaobtaobtahgbahgbahgbahgbahgban4gan4gan4gan4gan4gglcbglcbglcbglcbglcb4g0saobtaobtaobtaobtaobtahgbahgbahgbahgbahgban4gan4gan4gan4gan4gglcbglcbglcbglcbglcb4g0a4g0a4g0a4g0a4g0aebsaebsaebsaebsaebsa3gya3gya3gya3gya3gya3gaatwgatwgatwgatwgatwhgbqdgbqdgbqdgbqdgbqb4gwb4gwb4gwb4gwccbpjlex60etgyaaaaaelftksuqmcc"}]
3   Pass
close all; figure; figure; assert(isequal(numfig(),2))

A8dpaodsap0j2b5sm7baaaaaaelftksuqmcc"}]
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,ivborw0kggoaaaansuheugaaakcaaag3caiaaaaxw2ykaaafkkleqvr42u3vmqeaaazcmpybbh9biqfpuwc4ihia4goa4goa4goa4goauboauboauboauboauboargyargyargyargaaqwgaqwgaqwgaqwgaqwhgagdgagdgagdgagdgagc4ggc4ggc4ggc4ggcubgcubgcubgcubgcubocraycraycraycraebqaobqaobqaobqaobqalgaalgaalgaalgaalgaak4gak4gak4gak4ggksbgksbgksbgksbgksb4goa4goa4goa4goauboauboauboauboauboargyargyargyargyargaaqwgaqwgaqwgaqwhgagdgagdgagdgagdgagc4ggc4ggc4ggc4ggcubgcubgcubgcubgcubocraycraycraycraycraebqaobqaobqaobqalgaalgaalgaalgaalgaak4gak4gak4gak4ggksbgksbgksbgksbgksb4goa4goa4goa4goa4goauboauboauboauboargyargyargyargyargaaqwgaqwgaqwgaqwhgahia4goa4goa4goa4goauboauboauboauboauboargyargyargyargaaqwgaqwgaqwgaqwgaqwhgagdgagdgagdgagdgagc4ggc4ggc4ggc4ggcubgcubgcubgcubgcubocraycraycraycraebqaobqaobqaobqaobqalgaalgaalgaalgaalgaak4gak4gak4gak4ggksbgksbgksbgksbgksb4goa4goa4goa4goauboauboauboauboauboargyargyargyargyargaaqwgaqwgaqwgaqwhgagdgagdgagdgagdgagc4ggc4ggc4ggc4ggcubgcubgcubgcubgcubocraycraycraycraycraebqaobqaobqaobqalgaalgaalgaalgaalgaak4gak4gak4gak4ggksbgksbgksbgksbgksb4goa4goa4goa4goa4goauboauboauboauboargyargyargyargyargaaqwgaqwgaqwgaqwhgahia4goa4goa4goa4goauboauboauboauboauboargyargyargyargaaqwgaqwgaqwgaqwgaqwhgagdgagdgagdgagdgagc4ggc4ggc4ggc4ggcubgcubgcubgcubgcubocraycraycraycraebqaobqaobqaobqaobqalgaalgaalgaalgaalgaak4gak4gak4gak4ggksbgksbgksbgksbgksb4goa4goa4goa4goauboauboauboauboauboargyargyargyargyargaaqwgaqwgaqwgaqwhgagdgagdgagdgagdgagc4ggc4ggc4ggc4ggcubgcubgcubgcubgcubocraycraycraycraycraebqaobqaobqaobqalgaalgaalgaalgaalgaak4gak4gak4gak4ggksbgksbgksbgksbgksb4goa4goa4goa4goa4goauboauboauboauboargyargyargyargyargaaqwgaqwgaqwgaqwhgahia4goa4goa4goa4goauboauboauboauboauboargyargyargyargaaqwgaqwgaqwgaqwgaqwhgagdgagdgagdgagdgagc4ggc4ggc4ggc4ggcubgcubgcubgcubgcubocraycraycraycraebqaobqaobqaobqaobqalgaalgaalgaalgaalgaak4gak4gak4gak4gwdmdqfo60ne+1dkaaaaasuvork5cyii="}]
6   Pass
close all; assert(isequal(numfig(),0))

Suggested Problems

More from this Author44