Cody

Solution 2025909

Submitted on 18 Nov 2019 at 4:03
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   Fail
clf; t = linspace(0,15,400); y = exp(-0.5*t).*cos(2*pi.*t); m = plot_cos(y, t); f = gcf; assert(isequal([f.Children.Children.Color], [1 0 0 0 0 1])) assert(strcmp([f.Children.Children.LineStyle], 'none--')) assert(strcmp([f.Children.Children.Marker],'*none')) assert(isequal([f.Children.Children.YData],[m, y]))

a = 0.4887 b = -0.7812 m = 0.4887 -0.7812

Unrecognized method, property, or field 'Children' for class 'matlab.graphics.GraphicsPlaceholder'. Error in Test1 (line 6) assert(isequal([f.Children.Children.Color], [1 0 0 0 0 1]))

Png;base64,ivborw0kggoaaaansuheugaaakkaaag3caiaaaavklaxaaaflkleqvr42u3vqreaaazcmpybbgctsesk9nmuah6jbab4gwb4gwb4gwb4gwb4gwdebgdebgdebgdebgdeboc3ayc3ayc3ayc3ayc3aebtaobtaobtaobtaobtahgbahgbahgbahgbahgban4gan4gan4gan4gan4gglcbglcbglcbglcbglcbglcb4g0a4g0a4g0a4g0a4g0aebsaebsaebsaebsaebsa3gya3gya3gya3gya3gaatwgatwgatwgatwgatwhgbqdgbqdgbqdgbqdgbqb4gwb4gwb4gwb4gwb4gwb4gwdebgdebgdebgdebgdeboc3ayc3ayc3ayc3ayc3aebtaobtaobtaobtaobtahgbahgbahgbahgbahgban4gan4gan4gan4gan4gglcbglcbglcbglcbglcbglcb4g0a4g0a4g0a4g0a4g0aebsaebsaebsaebsaebsa3gya3gya3gya3gya3gaatwgatwgatwgatwgatwhgbqdgbqdgbqdgbqdgbqb4gwb4gwb4gwb4gwb4gwdejgea3gya3gya3gya3gya3gaatwgatwgatwgatwgatwhgbqdgbqdgbqdgbqdgbqb4gwb4gwb4gwb4gwb4gwdebgdebgdebgdebgdeboc3ayc3ayc3ayc3ayc3aebtaobtaobtaobtaobtaobtahgbahgbahgbahgbahgban4gan4gan4gan4gan4gglcbglcbglcbglcbglcb4g0a4g0a4g0a4g0a4g0aebsaebsaebsaebsaebsa3gya3gya3gya3gya3gya3gaatwgatwgatwgatwgatwhgbqdgbqdgbqdgbqdgbqb4gwb4gwb4gwb4gwb4gwdebgdebgdebgdebgdeboc3ayc3ayc3ayc3ayc3aebtaobtaobtaobtaobtaobtahgbahgbahgbahgbahgban4gan4gan4gan4gan4gglcbglcbglcbglcbglcb4g0a4g0a4g0a4g0a4g0aebsaebsaebsaebsaebsa3gya3gya3gya3gya3gaat0kaglcbglcbglcbglcbglcb4g0a4g0a4g0a4g0a4g0aebsaebsaebsaebsaebsa3gya3gya3gya3gya3gaatwgatwgatwgatwgatwhgbqdgbqdgbqdgbqdgbqb4gwb4gwb4gwb4gwb4gwb4gwdebgdebgdebgdebgdeboc3ayc3ayc3ayc3ayc3aebtaobtaobtaobtaobtahgbahgbahgbahgbahgban4gan4gan4gan4gan4gglcbglcbglcbglcbglcbglcb4g0a4g0a4g0a4g0a4g0aebsaebsaebsaebsaebsa3gya3gya3gya3gya3gaatwgatwgatwgatwgatwhgbqdgbqdgbqdgbqdgbqb4gwb4gwb4gwb4gwb4gwb4gwdebgdebgdebgdebgdeboc3ayc3ayc3ayc3ayc3aebtaobtaobtaobtaobtahgbahgbahgbahgbahgban4gan4gan4gan4gan4gglcbglcbglcbglcbglcb4g0saobtaobtaobtaobtaobtahgbahgbahgbahgbahgban4gan4gan4gan4gan4gglcbglcbglcbglcbglcb4g0a4g0a4g0a4g0a4g0aebsaebsaebsaebsaebsa3gya3gya3gya3gya3gya3gaatwgatwgatwgatwgatwhgbqdgbqdgbqdgbqdgbqb4gwb4gwb4gwb4gwccbpjlex60etgyaaaaaelftksuqmcc"}]
2   Fail
clf; t = linspace(2,5,100); y = exp(-0.5*t).*cos(2*pi.*t); m = plot_cos(y, t); f = gcf; assert(isequal([f.Children.Children.Color], [1 0 0 0 0 1])) assert(strcmp([f.Children.Children.LineStyle], 'none--')) assert(strcmp([f.Children.Children.Marker],'*none')) assert(isequal([f.Children.Children.YData],[m, y]))

a = 2.4848 b = -0.2874 m = 2.4848 -0.2874

Unrecognized method, property, or field 'Children' for class 'matlab.graphics.GraphicsPlaceholder'. Error in Test2 (line 6) assert(isequal([f.Children.Children.Color], [1 0 0 0 0 1]))

Png;base64,ivborw0kggoaaaansuheugaaakcaaag1caiaaab8k8cvaaafjuleqvr42u3vmq0aaazdspin3alym9kq8iqfgc8iaqcubgcubgcubgcubocraycraycraycraycraebqaobqaobqaobqalgaalgaalgaalgaalgaak4gak4gak4gak4gak4ggksbgksbgksbgksb4goa4goa4goa4goa4goauboauboauboauboargyargyargyargyargaaqwgaqwgaqwgaqwgaqwhgagdgagdgagdgagc4ggc4ggc4ggc4ggc4ggcubgcubgcubgcubocraycraycraycraycraebqaobqaobqaobqaobqalgaalgaalgaalgaak4gak4gak4gak4gak4ggksbgksbgksbgksb4goa4goa4goa4goa4goauboauboauboauboauboargyargyargyargaaqwgaqwgaqwgaqwgaqwhgagdgagdgagdgagc4ggc4ggc4ggc4ggc4ggcubgcubgcubgcubgcubocraycraycraycraebqaobqaobqaobqaobqalgaalgaalgaalgaak4maqcubgcubgcubgcubocraycraycraycraycraebqaobqaobqaobqalgaalgaalgaalgaalgaak4gak4gak4gak4gak4ggksbgksbgksbgksb4goa4goa4goa4goa4goauboauboauboauboargyargyargyargyargaaqwgaqwgaqwgaqwgaqwhgagdgagdgagdgagc4ggc4ggc4ggc4ggc4ggcubgcubgcubgcubocraycraycraycraycraebqaobqaobqaobqaobqalgaalgaalgaalgaak4gak4gak4gak4gak4ggksbgksbgksbgksb4goa4goa4goa4goa4goauboauboauboauboauboargyargyargyargaaqwgaqwgaqwgaqwgaqwhgagdgagdgagdgagc4ggc4ggc4ggc4ggc4ggcubgcubgcubgcubgcubocraycraycraycraebqaobqaobqaobqaobqalgaalgaalgaalgaak4maqcubgcubgcubgcubocraycraycraycraycraebqaobqaobqaobqalgaalgaalgaalgaalgaak4gak4gak4gak4gak4ggksbgksbgksbgksb4goa4goa4goa4goa4goauboauboauboauboargyargyargyargyargaaqwgaqwgaqwgaqwgaqwhgagdgagdgagdgagc4ggc4ggc4ggc4ggc4ggcubgcubgcubgcubocraycraycraycraycraebqaobqaobqaobqaobqalgaalgaalgaalgaak4gak4gak4gak4gak4ggksbgksbgksbgksb4goa4goa4goa4goa4goauboauboauboauboauboargyargyargyargaaqwgaqwgaqwgaqwgaqwhgagdgagdgagdgagc4ggc4ggc4ggc4ggc4ggcubgcubgcubgcubgcubocraycraycraycraebqaobqaobqaobqaobqalgaalgaalgaalgaak4maqcubgcubgcubgcubocraycraycraycraycraebqaobqaobqaobqalgaalgaalgaalgaalgaak4gak4gak4gak4gak4ggksbgksbgksbgksb4goa4goa4goa4goa4goauboauboauboauboargyargyargyargyargaaqwgaqwgaqwgaqwgaqwhgagdgagbwaguanaogdp84aaaaaelftksuqmcc"}]

Suggested Problems

More from this Author7