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

1- clc

2- Clear
3- close all
4
5- R=10e3;
6- C=15000e-6;
7
8- ts=0.1;
9- t=(0:ts:200) '' ;
10- vi=5;
11- vo= Vi*(t-(R*C)+((R*C)*exp((-1/(R*C))*t)));
12
13 %plot(t,Vo)
14
15- load dato2.1vm
16
17- Vc_real=dato2(: , 1);
18- t_real=dato2(: , 2);
19- plot(t, Vo, t_real,Vc_real, '--r')
20- legend('Simulacion' , 'Datos Reales')
21- xlim([0 18])
22
23

You might also like