@@ -6,10 +6,12 @@ The input values for each function are generally not validated other than their
6
6
7
7
### Table of Contents
8
8
9
- 1 . [ Tridiagonal LU Decomposition Matrix Solver] ( #Tridiagonal-LU-Decomposition-Matrix-Solver )
10
- a. [ Example 1] ( #Example )
11
- 2 . [ Least-Square Plot Using QR Decomposition] ( #Least-Square-Plot-Using-QR-Decomposition )
12
- b. [ Example 2] ( #Example-1 )
9
+ 1 . [ Tridiagonal LU Decomposition Matrix Solver] ( #tridiagonal-lu-decomposition-matrix-solver )
10
+ a. [ Example] ( #example )
11
+ 2 . [ Least-Square Plot Using QR Decomposition] ( #least-square-plot-using-qr-decomposition )
12
+ b. [ Example] ( #example-1 )
13
+ 3 . [ Natural Clamped Cubic Spline] ( #natural-clamped-cubic-spline- )
14
+ b. [ Example] ( #example-2 )
13
15
14
16
### Tridiagonal LU Decomposition Matrix Solver
15
17
@@ -52,8 +54,6 @@ A = [ e^-1 e^-2 ]
52
54
[ e^-2 e^-4 ]
53
55
```
54
56
55
- Two assumptions made for the script are: ` A ` has rank n and m >= n.
56
-
57
57
##### Example
58
58
59
59
```
63
63
8.3282
64
64
-8.4245
65
65
```
66
- <img src =" https://raw.githubusercontent.com/onezerosix/misc-matlab-scripts/master/pictures/lsquare_plot_with_qr_example_graph.png " width =" 45% " alt =" example plot " >
66
+ <img src =" https://raw.githubusercontent.com/onezerosix/misc-matlab-scripts/master/pictures/lsquare_plot_with_qr_example_graph.png " width =" 50% " alt =" example plot " >
67
+
68
+ ### Natural Clamped Cubic Spline Plot
69
+
70
+ This script interpolates given coordinates to find a natural clamped cubic spline function and plots the results.
71
+
72
+ The output includes vectors for the intially unknown variables in the spline function S. See the help docs for more info.
73
+
74
+ ##### Example
75
+
76
+ ```
77
+ >> [m,a,b] = nat_clamped_cubic_spline([0;.5;1;1.3;2;3], [0;1.6;2;1.93;1.06;0.38])
78
+
79
+ m =
80
+ 0 -6.9356 -1.0575 -3.4675 1.7072 0
81
+
82
+ a =
83
+ 0 3.7780 6.7195 3.1617 0.7755
84
+
85
+ b =
86
+ 3.7780 4.0881 6.6067 1.3151 0.3800
87
+ ```
88
+
89
+ <img src =" https://raw.githubusercontent.com/onezerosix/misc-matlab-scripts/master/pictures/nat_clamped_cubic_spline_example_graph.png " width =" 50% " alt =" example plot " >
0 commit comments