In: Computer Science
Let t = [1:60];
x = [68 126 86 71 100 177 233 271 206 269 340 269 315 384 431 467 382 440 511 558 565 529 511 551 682 665 642 671 796 774 749 758 796 834 878 896 847 836 872 925 978 981 989 1041 1070 1067 1138 1167 1167 1167 1167 1194 1245 1196 1167 1165 1167 1196 1167 1134];
y =-[238 226 189 238 295 231 184 240 289 235 195 231 295 249 184 189 244 291 246 233 193 193 246 289 115 35 273 298 111 33 44 286 280 242 238 193 191 242 291 271 184 293 233 182 211 289 242 209 80 160 278 298 246 298 275 206 155 153 157 162];
1. Use cubic splines with clamped conditions to fit the data t and y.
2. Let tt=linspace(t(1),t(end),200); and evaluate the cubic spline at tt and assign the result to a variable called y1.
3. Find spline (from 1) at 45.
4. Use cubic splines with not-a-knot conditions to fit the data t and x.
5. Let tt=linspace(t(1),t(end),200); and evaluate the cubic spline at tt and assign the result to a variable called x1.
6.Plot the x1 (from part 5) against y1 (from part 2). Describe the resulting plot and show your MATLAB code and plots.