How to find the numerical intersection points for a sine and linear function to find solutions ?

5 views (last 30 days)

Answers (1)

James Tursa
James Tursa on 31 Jan 2021
You can't do floating point calculations like this and expect the results to match exactly. You would need to use a tolerance to compare. That being said, instead of this approach maybe you should be looking at the asin( ) function to get one of the values. And then use the periodicity of sin( ) with pencil & paper to figure out the other values relative to the one you found.
Alternatively, you could use a numeric solver to find roots of sin(2*t)-0.4 given various starting points (e.g., from your plot).
What technique/method are you instructed to use for this assignment?

Categories

Find more on Mathematics in Help Center and File Exchange

Products


Release

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!