summaryrefslogtreecommitdiff
path: root/2414/CH7/EX7.1/Ex7_1.sce
blob: 9b386456b424bea7fcece87c5966b39a4d971320 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
clc;
close();
//page no 227
//prob no. 7.1
t=linspace(0,20);
function {theta]=theta(t)     //function for instantanious phase
    theta=3*%pi*t^2;
endfunction
function {fs]=frequency(t)     //function for instantanious phase
    Ws=6*%pi*t;
    fs=Ws/(2*%pi);
endfunction
subplot(2,1,1)
plot(t,theta,1);
xtitle('Plot1:Instantanious signal phase','t','theta',1);
fs=frequency(t);
subplot(2,1,2)
plot(t,fs,2);
xtitle('Plot2:Frequency','t','fs',1);