summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVasil Zlatanov <v@skozl.com>2017-02-21 22:28:16 +0000
committerVasil Zlatanov <v@skozl.com>2017-02-21 22:28:16 +0000
commit0cf1fa44a5e8d35ce263954bd53bb94b7b0f9099 (patch)
tree17079d21151d19d08d7d6f93441470c66639ed5b
parentcf767337fb89aae07e791189e785cb46c0e92c09 (diff)
downloade2-matlab-0cf1fa44a5e8d35ce263954bd53bb94b7b0f9099.tar.gz
e2-matlab-0cf1fa44a5e8d35ce263954bd53bb94b7b0f9099.tar.bz2
e2-matlab-0cf1fa44a5e8d35ce263954bd53bb94b7b0f9099.zip
add debug comments
-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);