The author intenionally hide some info about the website's matlab code, since both of fomula and code calculate M4 with slightly different way, in Cody, you DO NOT NEED to minus the mean of P, unlike this website's code actually did that. I learned that in hard way, but deeply hope you guys enjoy to optimize this code.
Back to basics 8 - Matrix Diagonals
785 Solvers
Convert a numerical matrix into a cell array of strings
469 Solvers
Find best placement for ordered dominoes (harder)
205 Solvers
How many days does the cat take to climb out of the hole?
64 Solvers
578 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!