RC B 2

You might also like

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

>> sys_equ='DB=(V/(R*C))-(B/(R*C))'

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'

The closest match is: subs in C:\Program


Files\MATLAB\MATLAB Production
Server\R2015a\toolbox\symbolic\symbolic\subs.m

Did you mean:


>> B=subs(B)

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 [.

Did you mean:


>> xlabel('tiempo-s')
>> ylabel('voltaje-condensador')

You might also like