Problem 2341. Find maximum value of a curve
Two vectors shall be already defined:
- Input vector x (e.g. x = 0:1:10)
- Result vector y (e.g. y = sin(x))
Create a new function which outputs the maximum value of the curve.
Solution Stats
Problem Comments
-
1 Comment
Matthew Eicholtz
on 17 Jan 2015
The input x is unnecessary. Consider modifying the problem by removing x or making y an anonymous function.
Solution Comments
Show commentsProblem Recent Solvers109
Suggested Problems
-
Replace NaNs with the number that appears to its left in the row.
2957 Solvers
-
Project Euler: Problem 10, Sum of Primes
1691 Solvers
-
Back to basics 8 - Matrix Diagonals
914 Solvers
-
Add a row of zeros on top of a matrix
247 Solvers
-
Find the index of n in magic(n)
234 Solvers
More from this Author1
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!