This solution is outdated. To rescore this solution, sign in.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
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]))
|
2 | Pass |
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]))
|
Find the longest sequence of 1's in a binary sequence.
3370 Solvers
Find the sum of the elements in the "second" diagonal
994 Solvers
Set some matrix elements to zero
290 Solvers
360 Solvers
195 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!