Question

-8(0) dt 25.22 Suppose that a projectile is launched upward from the earths surface. Assume that the only force acting on th

solve it with matlab

1 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

R=6.37e6;

g=9.81;

f=@(t,y) [y(2);-(R^2*g)/(R + y(1))^2];

[T,Y]=eulerSystem(f,[0,1000],[0,1500],0.1);

disp('Maximum height is');

max(Y(1,:))

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

Of 1971 6 7 8 - 9 10 11 12 - 13 14 15 - 16 - 17 - 18 19 20 21 - 22 g=9.81; f=@(t,y) [y(2);-(R^2*g)/(R + y(1))^2); [T,Y]=euler

Kindly revert for any queries

Thanks.

Add a comment
Know the answer?
Add Answer to:
solve it with matlab -8(0) dt 25.22 Suppose that a projectile is launched upward from the...
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