summaryrefslogtreecommitdiff
path: root/coursework17/ralston.m
diff options
context:
space:
mode:
Diffstat (limited to 'coursework17/ralston.m')
-rw-r--r--coursework17/ralston.m1
1 files changed, 1 insertions, 0 deletions
diff --git a/coursework17/ralston.m b/coursework17/ralston.m
index d910442..7ed4ad3 100644
--- a/coursework17/ralston.m
+++ b/coursework17/ralston.m
@@ -10,6 +10,7 @@ function [time_array, Vout_array] = ralston(R, L, Vin, current_initial, step, t_
% Given the input voltage as a function of time we can express
% dI/dt (dcurrent_dt) as a function of time as well (given R and L)
+ % NOTE we can use the integrating factor to find exact solution
dcurrent_dt = @(t, I) (Vin(t) - I*R)/L;
% Loop as many times as step allows and: