Modify the code from the tutorial to make a plot showing the effect of the no. of time-steps n on the Euler's method solution. Use the following two values for n: 100 and 200. Make two calls to the Euler function for the two different time-steps.
Your modified plot of x vs. t should contain three curves:
We suggest that you create a copy of the code from the tutorial and work with that.
Submit your modified code and plot.
*Go to Spring-Mass Tutorial Start-page *
Go to all MATLAB Learning Modules