Question

PLEASE PLEASE,ONLY ANSWER THIS QUESTION IF YOU COULD GIVE ME THE MATLAB CODE.THANK YOU.

dyi y = 2.5. dy Consider the following Ordinary Differential Equation (ODE) for function yı(a) on interval [0, 1] dyi dayı dy

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 long

f=@(t,y) [y(2);y(3);(3*y(1))/5 - (29*y(2))/10 + (33*y(3))/10];

[T,Y]=eulerSystem(f,[0,1],[2.5,8.86,18.248],0.5)

function [t,y]=eulerSystem(Func,Tspan,Y0,h)

t0=Tspan(1);

tf=Tspan(2);

N=(tf-t0)/h;

y=zeros(length(Y0),N+1);

y(:,1)=Y0;

t=t0:h:tf;

for i=1:N

y(:,i+1)=y(:,i)+h*Func(t(i),y(:,i));

end

end

2 - 3 4 - 5 - 6 - 7 8 9 10 11 12 13 14 - 15 16 17 - clear all close all format long f=@(t,y) [y(2);y(3);(3*y(1))/5 - (29*y(2)

Kindly revert for any queries

Thanks.

Add a comment
Know the answer?
Add Answer to:
PLEASE PLEASE,ONLY ANSWER THIS QUESTION IF YOU COULD GIVE ME THE MATLAB CODE.THANK YOU. dyi y...
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