From ea6e5fdaeef733df0559a5a62ac1954b5ede6925 Mon Sep 17 00:00:00 2001 From: Zihan Liu Date: Tue, 14 Mar 2017 21:37:52 +0000 Subject: Update get_function.m --- Part 3/scripts/get_function.m | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit