Question: Please show the matlab code! Thanks! Clear, clc, close all, format compact, format shortg %% Problem #1 % 50 points % Consider the following initial

Please show the matlab code! Thanks!

Please show the matlab code! Thanks! Clear, clc, close all, format compact,

Clear, clc, close all, format compact, format shortg %% Problem #1 % 50 points % Consider the following initial value problem over the interval from % t = 0 to 4 where % y(0) = 1 % dy/dt = cos(0.8*y)*t (Not necessarily MATLAB code) % ****************************** *********************** % Notice that this is a function of BOTH t and y! ! % ***************************************************** % a. 10 pts Solve analytically using MATLAB's symbolic algebra capabilities % By solve I mean... create a symbolic expression for y in terms of t %% b. 5 pts Convert your result from part a into an anonymous function % called f %% c. 25 pts Use Euler's method to solve this problem for y, using a step size % of 0.2. Display your results by creating a table showing % the t value, % the corresponding y value determined with Euler's method, % and the analytically determined value of y - which is a function of t % Your table should have a title and appropriate column headings %% d. 10 pts Plot your results - Be use to add a title and axis labels. Your plot % should include two lines - one for the analytical solution and one for % the solution based on Euler's method. Show the calculated points from Euler's method % as circles - Also include a legend

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!