Question

please write code in matlab thankyou(10 points) Plot the function f(x) = (3cos-sinx)e-02x for-4 appropriate plot title and label the axes. After completing this step, you should obtain a plot in the Figure Window similar to the sample plot shown below: 2. 9. Add 0.2x 2- 0- -2 -8 -2 2 6 10

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Here is the code in MATLAB:

x = -4:pi/100:9;

y = (3*cos(x) - sin(x)).*exp(-x*0.2);

plot(x,y)

xlabel('x = -4:9')

ylabel(' Function f')

title('Plot of the given Function','FontSize',12)
Add a comment
Know the answer?
Add Answer to:
please write code in matlab thankyou (10 points) Plot the function f(x) = (3cos-sinx)e-02x for-4 appropriate...
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