it seems there's an erroneous test case. the second test case has this line in it: Assert(isequal(P,PBM(B,M))), but there's no P or PBM
Fixed, thanks for letting me know.
I couldn't think of a clever way, so I just mimicked how I do multiplication with paper and pencil. Duh.
Which values occur exactly three times?
3838 Solvers
615 Solvers
Determine if a Given Number is a Triangle Number
326 Solvers
236 Solvers
Area of an equilateral triangle
2904 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!