Cody

Problem 44929. Plot Line Specifications

Solution 2064583

Submitted on 20 Dec 2019 by Martin C.
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
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,'*') );

h = Line with properties: Color: [1 0 0] LineStyle: ':' LineWidth: 0.5000 Marker: '*' MarkerSize: 6 MarkerFaceColor: 'none' XData: [1×210 double] YData: [1×210 double] ZData: [1×0 double] Show all properties f = Line with properties: Color: [1 0 0] LineStyle: ':' LineWidth: 0.5000 Marker: '*' MarkerSize: 6 MarkerFaceColor: 'none' XData: [1×210 double] YData: [1×210 double] ZData: [1×0 double] Show all properties

  

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!