I really don't see the point of that kind of problems where you can't use Matlab built-in functions.
which functions?
15421 Solvers
1167 Solvers
188 Solvers
489 Solvers
Write c^3 as sum of two squares a^2+b^2
283 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!