Cody

Solution 2027277

Submitted on 19 Nov 2019 at 6:27
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

This solution is outdated. To rescore this solution, sign in.

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]))

ans = 'r*'

Output argument "m" (and maybe others) not assigned during call to "plot_cos". Error in Test1 (line 4) m = plot_cos(y, t);

Km7gjvmsaaaaasuvork5cyii="}]
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]))

ans = 'r*'

Output argument "m" (and maybe others) not assigned during call to "plot_cos". Error in Test2 (line 4) m = plot_cos(y, t);

+97+vxr0ktzhjcpb4huid6diqbgcqbocqaycqaycqaycqaycqaabqakbqakbqakbqakbqakgaakgaakgaakgaakogakogakogakogakoggkobgkobgkobgkobogoaogoaogoa8e38h0x2mchsvblsaaaaaelftksuqmcc"}]

Suggested Problems

More from this Author7