summaryrefslogtreecommitdiff
path: root/42/CH10/EX10.1/sadiku_10_1.sce
blob: 9d22d6b9151e505dbf7c0f312f457ddb3ec689b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
clear;
clc;
format('v',6);
disp('Direction of wave propagation is -ax');
w=10^8,c=3*10^8;
B=w/c;
disp(B,'Value of beta=');
T=2*%pi/w;
disp(T/2*10^9,'Time taken to travel half of wave length in nS= ');
t=0
x=-2*%pi:%pi/16:2*%pi;
Ey=50*cos(10^8 *t +B*x);
subplot(2,2,1)
plot(x,Ey);
t=T/4;
Ey=50*cos(10^8 *t +B*x);
subplot(2,2,2)
plot(x,Ey);
t=T/2;
Ey=50*cos(10^8 *t +B*x);
subplot(2,2,3)
plot(x,Ey);