Skip to content

Commit 4011abb

Browse files
authored
Small fixes & add newest script info to README
Add info for the newest script (nat_clamped_cubic_spline), remove numbers from example headers in the table of contents, remove assumptions for lsquare_plot_with_qr (redundant from help docs) and enlarge its plot by 5%.
1 parent 1ca385c commit 4011abb

File tree

1 file changed

+30
-7
lines changed

1 file changed

+30
-7
lines changed

README.md

Lines changed: 30 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@ The input values for each function are generally not validated other than their
66

77
### Table of Contents
88

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)
1315

1416
### Tridiagonal LU Decomposition Matrix Solver
1517

@@ -52,8 +54,6 @@ A = [ e^-1 e^-2 ]
5254
[ e^-2 e^-4 ]
5355
```
5456

55-
Two assumptions made for the script are: `A` has rank n and m >= n.
56-
5757
##### Example
5858

5959
```
@@ -63,4 +63,27 @@ x =
6363
8.3282
6464
-8.4245
6565
```
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

Comments
 (0)