Cody

Solution 1916323

Submitted on 30 Aug 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 cos Too many input arguments. Error in cosplot (line 2) h=plot(cos(0:0.03:2*pi,'r*:')) Error in Test1 (line 3) f = cosplot(N);