Question

HW12_4: Solve the system of nonlinear equations over the interval 0 st0.03 using ode45. Display the results on the same graph

Please write code in MATLAB.

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%clears the screen
clear all %clears the history
format long;
f=@(t,x) [-x(1)^4+x(2)*t;-x(1)+(x(2)+x(2)^4)+x(3)^4;(x(2)+x(2)^4)+x(3)^4+t];
tspan=[0,0.03];
y0=[3;2;1];
[T,X]=ode45(f,tspan,y0);
plot(T,X(:,1),T,X(:,2),T,X(:,3));
legend('x(t)','y(t)','z(t)')

MATLAB R2018a Figure Search Documentation Log In EDITOR naertfEile Edit View Insert Iools Desktop Wndow Help Find Files ier c

Kindly revert for any queries

Thanks.

Add a comment
Know the answer?
Add Answer to:
Please write code in MATLAB. HW12_4: Solve the system of nonlinear equations over the interval 0 st0.03 using ode45. Display the results on the same graph. Include a legend. x(0)-3, y(0)-2, z(0)-1 ax...
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