blob: 2c16a6b17ade268a945da07137764157db396a14 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// Example 2.13 :reading
clc;
close;
format('v',8)
clear;
// given :
v1=230;//voltage in volts
v2=100;//voltage in volts
v2=sqrt(v1^2-v2^2);//voltage in volts
v3=300;//voltage in volts
disp(v2,"reading V2 is,(V)")
disp("reading V4 is "+string(v3+v2)+" V or "+string(v3-v2)+" V")
|