Professional Documents
Culture Documents
RC B 2
RC B 2
RC B 2
sys_equ =
DB=(V/(R*C))-(B/(R*C))
>> B=dsolve(sys_equ,'B(0)=2','t')
B =
V - exp(-t/(C*R))*(V - 2)
>> v=10;
>> r=2000;
>> c=1e-3;
>> B=subs(B)
B =
V - exp(-t/(C*R))*(V - 2)
>> V=10;
>> R=2000;
>> C=1e-3;
>> B=SUBS(B)
Cannot find an exact (case-sensitive) match for 'SUBS'
B =
10 - 8*exp(-t/2)
>> t=linspace(0,40,200);
>> B_plot=eval(vectorize(B));
>> figure
>> hold on
>> plot(t,B_plot)
>> grid on
>> xlabel('tiempo-s'
xlabel('tiempo-s'
|
Error: Expression or statement is incorrect--possibly
unbalanced (, {, or [.