Question

Can someone help me out with this. I can't get my MATLAB to do these correctly, thanks!

Solve the following differential equations using the Matlab function ode45”, ”ode23” or “ode 15s. For all cases use odeset

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

a)

- O X clear;clc; %d init = 5; tspan = 0:0.1:2; sol = ode 45 (@(t,y) -2*y, tspan, init); sol.stats plot (sol.x, sol.y) legend

b)

- O X II II III clear;clc; %d Figure 1 init = [10 0]; Eile Edit View tspan = 0:0.1:2; sol = ode 45 (@od, tspan, init); a dua

c)

- O X Figure 1 Eile Edit View Insert Tools Desktop Window Help dua kaka @ IE - о л ь о месо со н о п р о ме clear;clc; %d ini

Add a comment
Know the answer?
Add Answer to:
Can someone help me out with this. I can't get my MATLAB to do these correctly,...
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