Lec 24 %26 25 ECE201 F11 (1)

Lec 24 %26 25 ECE201 F11 (1) - 2 of 32 3 of 32 4 of 32 5 of...

Info iconThis preview shows pages 1–21. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 2 of 32 3 of 32 4 of 32 5 of 32 6 of 32 7 of 32 8 of 32 9 of 32 10 of 32 11 of 32 12 of 32 13 of 32 14 of 32 15 of 32 16 of 32 17 of 32 18 of 32 function ex9a %% interval 1 R = num2str(4); C = num2str(2); L = num2str(3); F = num2str(5/3/2); de1 = strcat('D2x + 1/(',R,'*',C,')*Dx + 1/(',L,'*',C,')*x = ',F) ic1a = 'Dx(0)=1'; ic1b = 'x(0)=2'; S1 = dsolve(de1, ic1a, ic1b); n = 0; for t = 0 : 0.1 : 47 n = n + 1; X(n) = t; Y(n) = eval(S1); end figure(1); clf; hold on; grid on; title('D2x + 1/(R*C)*Dx + 1/(L*C)*x = F'); xlabel('Time [s]'); ylabel('Current [A]'); plot(X,Y); pause 19 of 32 function ex9a %% interval 1 R = num2str(4); C = num2str(2); L = num2str(3); F = num2str(5/3/2); de1 = strcat('D2x + 1/(',R,'*',C,')*Dx + 1/(',L,'*',C,')*x = ',F) ic1a = 'Dx(0)=1'; ic1b = 'x(0)=2'; S1 = dsolve(de1, ic1a, ic1b); n = 0; for t = 0 : 0.1 : 47 n = n + 1; X(n) = t; Y(n) = eval(S1); end figure(1); clf; hold on; grid on; title('D2x + 1/(R*C)*Dx + 1/(L*C)*x = F'); xlabel('Time [s]'); ylabel('Current [A]'); plot(X,Y); pause 20 of 32 function ex9a %% interval 1 R = num2str(4); C = num2str(2); L = num2str(3); F = num2str(5/3/2);...
View Full Document

This note was uploaded on 11/16/2011 for the course ECE 201 taught by Professor All during the Fall '08 term at Purdue.

Page1 / 31

Lec 24 %26 25 ECE201 F11 (1) - 2 of 32 3 of 32 4 of 32 5 of...

This preview shows document pages 1 - 21. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online