Question: ME 2016 - Computing Techniques FALL 2017 Section A Homework 0 Due Tuesday, September 5 at 2:55 PM MATLAB coding and file uploading to T-Square

 ME 2016 - Computing Techniques FALL 2017 Section A Homework 0Due Tuesday, September 5 at 2:55 PM MATLAB coding and file uploadingto T-Square The main purpose of this homework is to write a

ME 2016 - Computing Techniques FALL 2017 Section A Homework 0 Due Tuesday, September 5 at 2:55 PM MATLAB coding and file uploading to T-Square The main purpose of this homework is to write a simple MATLAB code, write a brief report and familiarize yourself with the process of uploading your files to T-Square for grading. This assignment should be considered a practice run for future homework and projects. You will determine the velocity of the falling parachutist using the method described in class; in order to do that, you will code the twofunctions para and Euler as discussed in class. First, code para in exactly the same manner as the class version. Then, modify Euler to have the following syntax: [TOUT, YOUT]-Euler (problem,yi,ti,tf,dt) where all the input arguments (except the first one) are the same as those defined in class, TOUT is a vector containing the incremental time values from ti to tf and YOUT is the solution vector corresponding to the times in TOUT (i.e.: each element in YOUT is the computed Euler approximation at the corresponding element (time) in TOUT; the first element in TOUT is ti and the first element in YOUT is yi) The first input argument, problem, is called a function handle and will allow you to make Euler a completely generic function, [ie, without any reference to the specific parachutist problem). problem is the generic name of the file that contains the slope that is needed by Euler. To use the function handle in Euler, simply replace the call to para (in the class version) by a call to problenm. Finally, write a script called HWO that does the following plots the exact solution (Equation 5 in my notes) for the velocity fromt-0 to t- 20 s, using a smooth (i.e, use at least 100 points to plot), continuous line (use the values given in class for c and m and use g 9.81 m.s2) calls Euler and plots the approximate solution for step sizes of 2s, 1s and 0.5s, all on the same plot as for the exact solution, using discrete points (such as circles) of different colors to differentiate the different step sizes(use tf= 20s). Include a legend. Your script needs to call Euler 3 times, one for each value of the step size. To call Euler to solve the parachutist problem, use the following syntax: Euler (epara,yi,ti,tf,dt) * ME 2016 - Computing Techniques FALL 2017 Section A Homework 0 Due Tuesday, September 5 at 2:55 PM MATLAB coding and file uploading to T-Square The main purpose of this homework is to write a simple MATLAB code, write a brief report and familiarize yourself with the process of uploading your files to T-Square for grading. This assignment should be considered a practice run for future homework and projects. You will determine the velocity of the falling parachutist using the method described in class; in order to do that, you will code the twofunctions para and Euler as discussed in class. First, code para in exactly the same manner as the class version. Then, modify Euler to have the following syntax: [TOUT, YOUT]-Euler (problem,yi,ti,tf,dt) where all the input arguments (except the first one) are the same as those defined in class, TOUT is a vector containing the incremental time values from ti to tf and YOUT is the solution vector corresponding to the times in TOUT (i.e.: each element in YOUT is the computed Euler approximation at the corresponding element (time) in TOUT; the first element in TOUT is ti and the first element in YOUT is yi) The first input argument, problem, is called a function handle and will allow you to make Euler a completely generic function, [ie, without any reference to the specific parachutist problem). problem is the generic name of the file that contains the slope that is needed by Euler. To use the function handle in Euler, simply replace the call to para (in the class version) by a call to problenm. Finally, write a script called HWO that does the following plots the exact solution (Equation 5 in my notes) for the velocity fromt-0 to t- 20 s, using a smooth (i.e, use at least 100 points to plot), continuous line (use the values given in class for c and m and use g 9.81 m.s2) calls Euler and plots the approximate solution for step sizes of 2s, 1s and 0.5s, all on the same plot as for the exact solution, using discrete points (such as circles) of different colors to differentiate the different step sizes(use tf= 20s). Include a legend. Your script needs to call Euler 3 times, one for each value of the step size. To call Euler to solve the parachutist problem, use the following syntax: Euler (epara,yi,ti,tf,dt) *

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!