From 0cf1fa44a5e8d35ce263954bd53bb94b7b0f9099 Mon Sep 17 00:00:00 2001 From: Vasil Zlatanov Date: Tue, 21 Feb 2017 22:28:16 +0000 Subject: add debug comments --- coursework17/error_script.m | 7 +++++++ 1 file changed, 7 insertions(+) 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); -- cgit v1.2.3-54-g00ecf