Question

Differential Equations with MATLAB/Plotting first order differential equations in Matlab/ Differential Equations MATLAB/IVP Matlab/IVP

I'd really appreciate if I can get some help plotting these 3 first order differential equations as well as their comments. PLEASE! ANYTHING HELPS, I am very stuck :(

EZplot and ODE 45 were mentioned in class and the instructions in class were not clear at all.

Given the first order differential equation with initial condition. dy/dt = y t, y(0)=-1 Complete problems 1-3 in one M-file

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

`Hey,

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

clc
clear all
close all
f=@(t,y) -0.08*y^2+0.8*y;
[T,Y]=ode45(f,[0,4],1);
plot(T,Y);
xlabel('t');
ylabel('y(t)');
title('Plot of DE2');
figure;
f=@(t,y) y^2*cos(t);
[T,Y]=ode45(f,[0,4],1);
plot(T,Y);
xlabel('t');
ylabel('y(t)');
title('Plot of DE3');

yH5BAAAAAAALAAAAAAOAA4AAAIMhI+py+0Po5y02wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==

Kindly revert for any queries

Thanks.

Add a comment
Know the answer?
Add Answer to:
Differential Equations with MATLAB/Plotting first order differential equations in Matlab/ Differential Equations MATLAB/IVP Matlab/IVP I'd really...
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