summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--coursework17/error_script.m7
1 files changed, 7 insertions, 0 deletions
diff --git a/coursework17/error_script.m b/coursework17/error_script.m
index 08a42d2..0b51643 100644
--- a/coursework17/error_script.m
+++ b/coursework17/error_script.m
@@ -28,6 +28,13 @@ Vout_exact = @(t) Vin(t) - current_exact(t)*R;
for j=1:data_points
error_array(j) = Vout_exact(time_array(j)) - Vout_array(j);
+ % Vout_plot(j) = Vout_exact(time_array(j));
end
+% plot(time_array, Vout_array);
+% figure;
+% plot(time_array, Vout_plot);
+%
+% max(Vout_plot-Vout_array)
+
loglog(time_array, error_array);