summaryrefslogtreecommitdiff
path: root/3637/CH4/EX4.21/Ex4_21.sce
blob: 59bc5b978212f26715a855355f1f50b5ed11f410 (plain)
1
2
3
4
5
6
7
8
9
10
11
//problem 21 pagenumber 4.46
//given
n=4;format(6);
z='0110';
vref=10;//volt
v0=vref*(1/2^2+1/2^3);
disp('Output voltage at '+string(z)+' = '+string(v0)+' volt');