I really don't see the point of that kind of problems where you can't use Matlab built-in functions.
which functions?
1289 Solvers
852 Solvers
It dseon't mettar waht oedrr the lrettes in a wrod are.
676 Solvers
Flip the main diagonal of a matrix
517 Solvers
736 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!