Solution 14 is classic Tim utilizing a multidimensional single for loop with a stunning magical rune string.
This solution is not general. How would this deal with NaCl for instance?
Another astounding solution by Alfonso. A symbolic solution with regexprep using an expert logical twist to accommodate all molecules.
This solution is not general. How would it deal with CaCO3?
5704 Solvers
Flip the main diagonal of a matrix
506 Solvers
Create matrix of replicated elements
321 Solvers
323 Solvers
Returning a "greater than" vector
188 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!