The data set below indicates a researcher's motivation level (scored out of 10) towards their research project over time. Time, t, is measured in years since their thesis start date.
- Download and save the data set to your computer, then import it into MATLAB
- Use the scatter function in MATLAB to plot the data
- Fit a polynomial model to the data using the fit or polyfit functions in MATLAB. Hint: you may need to try different degrees (quadratic, cubic...)
- Plot your fitted model on your scatterplot
- Use the LaTeX interpreter to change the plot title to be Motivation as a function of time (t), using your fitted model
- Export your MATLAB code and plot into LaTeX
- Open the .tex file and add a title, then compile it into a .pdf
t | Motivation |
---|---|
0 | 5 |
0.25 | 6.810938 |
0.5 | 7.475 |
0.75 | 7.310938 |
1 | 6.6 |
1.25 | 5.585938 |
1.5 | 4.475 |
1.75 | 3.435938 |
2 | 2.6 |
2.25 | 2.060938 |
2.5 | 1.875 |
2.75 | 2.060937 |
3 | 2.6 |
3.25 | 3.435937 |
3.5 | 4.475 |
3.75 | 5.585938 |
4 | 6.6 |