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.
5712 Solvers
Find the "ordinary" or Euclidean distance between A and Z
137 Solvers
Duplicate each element of a vector.
518 Solvers
134 Solvers
Generate a vector like 1,2,2,3,3,3,4,4,4,4
3665 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!