Question

6. Use Matlab to find the point(s) of intersection (if any) between the functions f()10sin(2 5) and g(x)-6r-4, accurate to tw
0 0
Add a comment Improve this question Transcribed image text
Answer #1

we are supposed to answer 1 question at a time. This is for 6

x=-2:.0001:2;
f=10*sin(2*x+5);
g=6*x-4;
ind=find(abs(f-g)<.001)
xx=x(ind)

%these are the x values at which the functions intersect
%note that .6308 and .6309 are the same
plot(x,f,x,g,xx,6*xx-4,'*')
grid on
legend('f(x)','g(x)','intersections','Location','Best')

Command Window x-2:.0001:2: Figure 1 >> g-6X-4; >>ind-find (abs (f-g)<.001) File Edit View nsert Tools Desktop Window Help i

Add a comment
Know the answer?
Add Answer to:
6. Use Matlab to find the point(s) of intersection (if any) between the functions f()10sin(2 5) a...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT