my first experiment
Congratulations on solving this problem. For future endeavours you might consider the following: (1) many common calculations already have dedicated functions available to compute them in MATLAB; (2) for generality you might have to initialise y=-Inf, not y=0; (3) for generality you might have to iterate over 1:size(x,#), not 1:2.
3787 Solvers
15429 Solvers
The Hitchhiker's Guide to MATLAB
2880 Solvers
Create a square matrix of multiples
386 Solvers
Calculate distance travelled when given radius and rotations
187 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!