Cody

Solution 1982828

Submitted on 19 Oct 2019 at 16:09 by kranthi kumar
  • Size: 26
  • This is the leading solution.
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
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]))

m = -0.7812 b = 14

G+0q53jbwwr9aaaaabjru5erkjggg=="}]
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(isequal([f.Children.Children.YData],[m, y]))

m = -0.2874 b = 17

+8+rvq3clmyzniw+i3omoo2oaogoaqboaqboaqboaqboaqboaqgyaqgyaqgyaqgyaqgaaqggaqggaqggaqgggagcgagcgagcgagcgagcoggcoggcoggcoggcqbgcqbgcqbgdfxp8bdk9kxeatywoaaaaasuvork5cyii="}]