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))
|
Replace NaNs with the number that appears to its left in the row.
2018 Solvers
232 Solvers
277 Solvers
Given a matrix, return the last eigen value
175 Solvers
Matlab Basics - Create a row vector
277 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!