Line 1: Line 1:
 +
<pre>
 +
% The number of charges going through the Resistor1 is directly proportional
 +
% to the time
 +
t = [0:0.01:15];
 +
R1 = 1000; % Ohms
 +
V = 50; % Volts
 +
I = V/R1;
 +
Q = I * t;
 +
plot(t,Q)
 +
title('Original')
 +
figure
 +
%When the switch is closed at t=2
 +
Q = I * (t-2);
 +
%Or Equavalently,
 +
t = [2:0.01:17];
 +
Q = I * t;
 +
plot(t,Q)
 +
title('Time Shifted by 2 sec')</pre>
 
[[ image:circuit.jpg _ECE301Fall2008mboutin]]
 
[[ image:circuit.jpg _ECE301Fall2008mboutin]]
 
[[ image:PartC1.jpg _ECE301Fall2008mboutin]]
 
[[ image:PartC1.jpg _ECE301Fall2008mboutin]]

Revision as of 17:57, 9 September 2008

% The number of charges going through the Resistor1 is directly proportional
% to the time
t = [0:0.01:15];
R1 = 1000; % Ohms
V = 50; % Volts
I = V/R1;
Q = I * t;
plot(t,Q)
title('Original')
figure
%When the switch is closed at t=2
Q = I * (t-2);
%Or Equavalently,
t = [2:0.01:17];
Q = I * t;
plot(t,Q)
title('Time Shifted by 2 sec')

File:Circuit.jpg ECE301Fall2008mboutin File:PartC1.jpg ECE301Fall2008mboutin

Alumni Liaison

Basic linear algebra uncovers and clarifies very important geometry and algebra.

Dr. Paul Garrett