blob: af3c03b0f4ff3768e51942c869412c4e6a391092 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// Exa 2.15
clc;
clear;
close;
format('v',6)
// Given data
V = 10;// in V
V1 = 2.5;// in V
R = 1;// in Mohm
R = R * 10^6;// in ohm
i = (V-V1)/R;// in A
i = i * 10^6;// in µA
// The output voltage for a complete cycle
Vo1 = (i*10^-6*R)+V1;// in V
disp(Vo1,"The output voltage for a complete cycle in V is");
// The output voltage for half neagtive cycle
Vo2 = V1;// in V
disp(Vo2,"The output voltage for half negative cycle in V is");
|