Problem 44929. Plot Line Specifications

Solution 2064580

Submitted on 20 Dec 2019
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
N = 2*pi; y = cos(0:0.03:N); f = cosplot(N); assert(isequal(f.YData,y) && isequal(f.Color, [1 0 0]) && strcmp(f.LineStyle, ':') && strcmp(f.Marker,'*') );

Error using plot Invalid data argument. Error in cosplot (line 3) h = plot(x,cos(x), '*','r') Error in Test1 (line 3) f = cosplot(N);

Suggested Problems

More from this Author13

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!