Cody

Solution 2060700

Submitted on 17 Dec 2019 by Eric Mueller
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   Pass
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(abs(m - (-0.781239288889930)) <= 1e-4) assert(isequal([f.Children.Children.YData],[m, y]))

m = -0.7812

92dny8fxzj7jkqbsafomoaqboaqboaqboaqboaqgyaqgyaqgyaqgyaqgaaqggaqggaqggaqgggagcgagcgagcgagcgagcoggcoggcoggcoggcoggcqbgcqbgcqbgcn8x8tnfmedjoxbwaaaabjru5erkjggg=="}]
2   Pass
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(abs(m - (-0.287376348726584)) <= 1e-4) assert(isequal([f.Children.Children.YData],[m, y]))

m = -0.2874

Fv34cbo9snylk6omdpwg60qgewpfqnafudafudafudafudqnuaqnuaqnuaqnuaqnuauduauduauduauduava0ava0ava0ava0ava0avqmavqmavqmavqmavqna1qba1qba1qdgnv4pfmafnq+h6diaaaaasuvork5cyii="}]

Suggested Problems

More from this Author13