Can't find the max of the plot
Show older comments
I'm new to Matlab, and I have encountered the following problem: I have a vector, named x, which contains 100 element created by a linspace function between eps and pi. Now, my plot is the following: (sin(t)/(4.7*t+3))+(cos(t.^2))*0.1 and stored in a fv variable. When I enter this into the find(max(fv) == fv) function, I get 1. But the correct answer should be 22, because when I enter t(22) to the place of t, I get a bigger number, than t(1). I have been working on it several days, and I couldn't get a good solution. What did I do wrong?
Accepted Answer
More Answers (0)
Categories
Find more on Annotations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
