diff options
author | Zihan Liu <zl6114@ic.ac.uk> | 2017-03-14 21:37:52 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-14 21:37:52 +0000 |
commit | ea6e5fdaeef733df0559a5a62ac1954b5ede6925 (patch) | |
tree | 72c0edfaf001d16bbc29653764793e1200ea4c59 | |
parent | dbdb6d78af349048aba9a6c715fa74f4435f1c9b (diff) | |
download | NumericalAnalysis-ea6e5fdaeef733df0559a5a62ac1954b5ede6925.tar.gz NumericalAnalysis-ea6e5fdaeef733df0559a5a62ac1954b5ede6925.zip |
Update get_function.m
-rw-r--r-- | Part 3/scripts/get_function.m | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Part 3/scripts/get_function.m b/Part 3/scripts/get_function.m index 7390900..dc6c823 100644 --- a/Part 3/scripts/get_function.m +++ b/Part 3/scripts/get_function.m @@ -18,8 +18,10 @@ elseif f == 3 y = abs(sin(2*pi*(0:h:1))); elseif f == 4 %add func + y = 5*asinh(2*pi*(0:h:1)); elseif f == 5 %add + y = 5*exp(-5*(0:h:1)); % exponential end end |