Question

4. MATLAB can solve second order equations numerically, but it needs to convert it to a sys- tem first. We havent covered sy

QUESTION 5 please.

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

`Hey,

Note: If you have any queries related to the answer please do comment. I would be very happy to resolve all your queries.

clc

clear all

close all

format short

syms y(t) Dy(t)

eq=diff(y,2)+9*y==cos(3*t);

Dy(t)=diff(y);

cond=[y(0)==0 Dy(0)==0];

y(t)=dsolve(eq,cond)

ezplot(y,[0,10]);

cos(9 t972 -...+ sin(3 t) (1/6 + sin(6 AM 1.5 1 х 0.5 Comment % Indent 5 EDIT Documents ► MATL Editor - /Use saveee.m 1 - clc

Kindly revert for any queries

Thanks.

Add a comment
Know the answer?
Add Answer to:
QUESTION 5 please. 4. MATLAB can solve second order equations numerically, but it needs to convert...
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