I really don't see the point of that kind of problems where you can't use Matlab built-in functions.
which functions?
856 Solvers
Matrix with different incremental runs
257 Solvers
396 Solvers
1353 Solvers
3186 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!