Question

Question 1

Use the attached Matlab code as a basis to solve the following ordinary differential equation using Eulers method, with time

QUESTION 2

d2 The code provided solves the boundary value problem 1) 1 y( ) on the interval 1<x-5 using a centred approximation of the d

Use the attached Matlab code as a basis to solve the following ordinary differential equation using Euler's method, with timestep of 0.1, from t-0to t-100. d)0) -0 - sin (5vt cos(у Plot y versus t from t=0 to t=100. How many local maxima are on this interval(do not include end points). Be careful to count them all! Answer should be an integer 1 w% Matlab code for the solution of Module 2 3 dt-9.1; %dt is the numerical separation in time. 4 tmax=100; 5 t (0:dt:tmax]; st is a vector containing the t values at which we will find y(t) 6 N-length(t); %the number of specific tines we want to find the solution at. 7 y = zeros (N,1); his line makes a vector for all the y values we want to find %--at this stage all values of y are set to 0 as place holders 10 y(1)SThis is not y(1) in the algebraic sense, it is y(0). Inside the brackets in Matlab recall that we want to say the element of the vector and not the value of a continuous variable. %-note that t(1) -0, the first element of the vector t. What is this value from the problem? 14 for i-橳??? we start our calculation, not at the first point which we just prescribed but from the second one. %For each successive point in the time series, we will now calculate y based on the previous one 16 17 19 20 end 21 22 plot(t,y) 23 %How many local maxima do you see (look carefully for all of then
d2 The code provided solves the boundary value problem 1) 1 y( ) on the interval 1
Comments
    0 0
    Add a comment Improve this question Transcribed image text
    Answer #1

    70 .98十 80.5 19(0.626+0.326] = 80.5十lol-0.667+0.165 8382 96 07 d (Io)lo2.37

    Add a comment
    Know the answer?
    Add Answer to:
    Use the attached Matlab code as a basis to solve the following ordinary differential equation usi...
    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