Cody

Solution 1031744

Submitted on 25 Oct 2016 by Jakub Mrowka
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 = rand(10,1); y = rand(1,10); colors = ['g', 'r', 'b']; colorNum = randi(length(colors)); color = colors(colorNum); colorCodes = {[0 1 0], [1 0 0], [0 0 1]}; color_correct = colorCodes{colorNum}; h = makeAPlot(x,y,color); poltHandle = get(h); plotColor = poltHandle(1).Color; plotX = poltHandle(1).XData; plotY = poltHandle(1).YData; assert(isequal(plotColor,color_correct)) assert(isequal(plotX',x)) assert(isequal(plotY,y))

h = Line with properties: Color: [0 0 1] LineStyle: '-' LineWidth: 0.5000 Marker: 'none' MarkerSize: 6 MarkerFaceColor: 'none' XData: [0.6488 0.4272 0.3176 0.3158 0.4364 0.1715 0.6269 0.1569 0.0045 0.4233] YData: [0.1917 0.4099 0.6968 0.7034 0.6750 0.9656 0.9203 0.7835 0.3488 0.3718] ZData: [1×0 double] Show all properties

Q++8cy+cjvw1gaaaabjru5erkjggg=="}]

Suggested Problems

More from this Author2