I really don't see the point of that kind of problems where you can't use Matlab built-in functions.
which functions?
786 Solvers
3378 Solvers
Find nearest prime number less than input number
270 Solvers
Find the dimensions of a matrix
373 Solvers
Convert from Fahrenheit to Celsius
7317 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!