Cody

Solution 1691341

Submitted on 12 Dec 2018 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
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))

h = Figure (1) with properties: Number: 1 Name: '' Color: [1 1 1] Position: [508 656 583 437] Units: 'pixels' Show all properties

9ygfgro2raaaaaelftksuqmcc"}]
2   Pass
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))

h = Figure (1) with properties: Number: 1 Name: '' Color: [1 1 1] Position: [509 654 583 437] Units: 'pixels' Show all properties

+o5aagggc1qaarayaaksbambqaacwggca1qaayduaafgnaabwawca1qaarayaaksbambqaacwggca1qaayduaafgnaabwawca1qaarayaaksbambqaacwggaarayayduaafgnaabwawca1qaarayawgdyfwhug8jspqbd9gaaaabjru5erkjggg=="}]
3   Pass
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))

h = Figure (1) with properties: Number: 1 Name: '' Color: [1 1 1] Position: [509 654 583 437] Units: 'pixels' Show all properties

Rl1++lc0thznl0ha+qgeqm1udqnuaqnuaqnuaqnuauduauduauduauduauduava0ava0ava0ava0avqmavqmavqmavqmavqna1qba1qba1qba1qba1qbqnqbqnqbqnqbqnqbudqds6f8d4wu8rtgrqcgaaaaasuvork5cyii="}]