diff options
author | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
commit | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch) | |
tree | dbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3637/CH2/EX2.22/Ex2_22.sce | |
parent | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff) | |
download | Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2 Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip |
initial commit / add all books
Diffstat (limited to '3637/CH2/EX2.22/Ex2_22.sce')
-rw-r--r-- | 3637/CH2/EX2.22/Ex2_22.sce | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/3637/CH2/EX2.22/Ex2_22.sce b/3637/CH2/EX2.22/Ex2_22.sce new file mode 100644 index 000000000..278728cc4 --- /dev/null +++ b/3637/CH2/EX2.22/Ex2_22.sce @@ -0,0 +1,20 @@ +//problem 22 pagenumber 2.105 +//given +rc1=1;format(3);clf(); +vi=5;//volt +c=1e-6;//farad +r=1e6;//ohm +x0=0;x1=1:1:5; +//determine output voltage +v0=integrate('5','t',x0,x1); +disp('Output voltage = -'+string(v0(5))+" V"); +subplot(1,2,1); +x=linspace(1,5,5); +y=5* ones(length(x),1); +plot(x,y); +xtitle('input waveform problem Ex2_22','time in sec','Vi in volts'); +subplot(1,2,2); +x=linspace(1,5,5); +y=linspace(0,-25,5); +plot(x,y); +xtitle('output waveform problem Ex2_22','time in sec','V0 in volts');
\ No newline at end of file |