Is there a problem with the test suite ? It gives error for statement "colorNum = randi(length(colors)); " as "??? Undefined function or method 'randi' for input arguments of type 'double'.", which version of matlab is having this function "randi" supported?
4108 Solvers
Back to basics 18 - justification
176 Solvers
188 Solvers
302 Solvers
Append two matrix as shown below example
182 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!