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.
Find the peak 3n+1 sequence value
1156 Solvers
866 Solvers
Find the "ordinary" or Euclidean distance between A and Z
140 Solvers
141 Solvers
148 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!