The output of * operator in this solution is a struct, rather than a mPoly object. Nevertheless, the test suite does not check the type of the output.
L Y Cao, since you're such a wizard with indices, I'd love to see you solve this without converting to the array form. It would be interesting to compare the approaches.
Andrew Newell, thanks for your advice.
It dseon't mettar waht oedrr the lrettes in a wrod are.
664 Solvers
Count from 0 to N^M in base N.
220 Solvers
110 Solvers
Create a vector whose elements depend on the previous element
398 Solvers
160 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!