Cody

Solution 2058187

Submitted on 15 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
x = 1:100; y = 1:100; h = plotdata(x,y); assert(ishandle(h)) assert(isequal(h.Children.Children.XData,x)) assert(isequal(h.Children.Children.YData,y))

ax = Axes with properties: XLim: [0 1] YLim: [0 1] XScale: 'linear' YScale: 'linear' GridLineStyle: '-' Position: [0.1300 0.1100 0.7750 0.8150] Units: 'normalized' Show all properties

Error using assert The condition input argument must be a scalar logical. Error in Test1 (line 4) assert(ishandle(h))

K0mp6euh2l4aaaaasuvork5cyii="}]
2   Fail
x = -2*pi:pi/8:2*pi; y = sin(x); h = plotdata(x,y); assert(ishandle(h)) assert(isequal(h.Children.Children.XData,x)) assert(isequal(h.Children.Children.YData,y))

ax = Axes with properties: XLim: [0 100] YLim: [0 100] XScale: 'linear' YScale: 'linear' GridLineStyle: '-' Position: [0.1300 0.1100 0.7750 0.8150] Units: 'normalized' Show all properties

Error using assert The condition input argument must be a scalar logical. Error in Test2 (line 4) assert(ishandle(h))

Lnartquezphpj+oggcqbgcqbgcqbgcqbgcqbocqaycqaycqaycqaabqakbqakbqakbqakbqakgaakgaakgaakgaakgaakogakogakogakoggkobgkobgkobgkobwkf+d2gprgzxoky4aaaaaelftksuqmcc"}]
3   Fail
theta = linspace(0,2*pi); x = 2*cos(theta) + 4; y = 2*sin(theta) + 3; h = plotdata(x,y); assert(ishandle(h)) assert(isequal(h.Children.Children.XData,x)) assert(isequal(h.Children.Children.YData,y))

ax = Axes with properties: XLim: [-1 1] YLim: [-8 8] XScale: 'linear' YScale: 'linear' GridLineStyle: '-' Position: [0.1300 0.1100 0.7750 0.8150] Units: 'normalized' Show all properties

Error using assert The condition input argument must be a scalar logical. Error in Test3 (line 5) assert(ishandle(h))

A7yxg7s2i9l+aaaaaelftksuqmcc"}]