You are on page 1of 3

Coding:

syms x t B f w ;
V=10;
t=0.1;
B=172.51;
f=1000;
w=2*(3.14)*(f);
x=0:0.25:5;
e=V*(cos(w*t -B*x));
xlabel('Plot of V(x,t) at t=0.1')
subplot(3,1,1);
plot(e)
t=0.3;
e=V*(cos(w*t -B*x));
subplot(3,1,2);
title('Plot of V(x,t) at t=0.3')
plot(e)
t=0.5;
e=V*(cos(w*t -B*x));
subplot(3,1,3);
title('Plot of V(x,t) at t=0.5')
plot(e)

Plot:

Plot of V(x,t) at t=0.1


10
0
-10
10
0
-10
10
0
-10

10
15
Plot of V(x,t) at t=0.3

20

25

10
15
Plot of V(x,t) at t=0.5

20

25

10

20

25

15

You might also like