Question
Matlab: please answer all 3 parts and show steps using Matlab inputs ONLY thank you

Problem 3. Consider the function f(x) ei cos(2x). (1) Sketch its graph over the interval [0, r] by the following commands: (2
0 0
Add a comment Improve this question Transcribed image text
Answer #1

`Hey,

Note: Brother in case of any queries, just comment in box I would be very happy to assist all your queries

clc
clear all
f=@(x) exp(x/2)*cos(2*x);
fplot(f,[0,pi]);
disp('Part b');
y=[f(pi/6) f(pi/6+0.01)];
x=[pi/6 pi/6+0.01];
diff(y)./diff(x)
disp('Part c');
x=pi/6;
(f(x+0.01)-2*f(x)+f(x-0.01))/0.01^2

MATLAB R2018a Figure Search Documentation Log In EDITOR naertfEile Edit View Insert Iools Desktop Wndow Help ב 3 っ见A a ם困 Fi

Kindly revert for any queries

Thanks.

Add a comment
Know the answer?
Add Answer to:
Matlab: please answer all 3 parts and show steps using Matlab inputs ONLY thank you Problem 3. Consider the function f(x) ei cos(2x). (1) Sketch its graph over the interval [0, r] by the followin...
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