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.
117 Solvers
Back to basics 6 - Column Vector
914 Solvers
Find third Side of a right triangle given hypotenuse and a side. No * - or other functions allowed
145 Solvers
Who is the smartest MATLAB programmer?
565 Solvers
Calculate the Number of Sign Changes in a Row Vector (No Element Is Zero)
238 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!