diff options
author | Aufar Laksana <apl115@ic.ac.uk> | 2017-03-12 16:59:09 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-12 16:59:09 +0000 |
commit | 2645c2a2de5adbc4370abd8b2b23d3589ccf2367 (patch) | |
tree | 54eca687d8048ead03a1990f8ef715fd55416dd1 | |
parent | 7219fb077ce181cf222c756498a85e10a7c9fe94 (diff) | |
download | NumericalAnalysis-2645c2a2de5adbc4370abd8b2b23d3589ccf2367.tar.gz NumericalAnalysis-2645c2a2de5adbc4370abd8b2b23d3589ccf2367.zip |
Update RLC_script.m
-rw-r--r-- | Part 2/RLC_script.m | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Part 2/RLC_script.m b/Part 2/RLC_script.m index f17f77e..8af0d74 100644 --- a/Part 2/RLC_script.m +++ b/Part 2/RLC_script.m @@ -19,15 +19,15 @@ Vout = zeros(1, N); %Vin = @(t)5*heaviside(t);
%%Impulse with Exponential Decay
-%Tau = 3*(10^-6);
-%Vin = @(t)5*exp(-(t^2)/Tau);
+Tau = 3*(10^-6);
+Vin = @(t)5*exp(-(t.^2)/Tau);
%%Square Wave (5Hz, 100Hz, 500Hz)
%Vin = @(t)5*square(2*pi*5*t);
%%Sine Wave (5Hz, 100Hz, 500Hz)
-Vin = @(t)5*sin(2*pi*5*t);
+%Vin = @(t)5*sin(2*pi*5*t);
%the coupled equation
func1 = @(t, qc, qc_dash)qc_dash;
@@ -55,4 +55,3 @@ plot(t, Vout); xlabel('Time');
ylabel('Amplitude');
end
-
|