DSP Lab 1
DSP Lab 1
id:
id:
Result:
enter value of n:4
s=
24
>>
27
a=
54
>>
Ques.3:
clc
clear all
close all
x=0:0.01:pi;
plot(x,10*sin(x),'g')
hold on
plot(x,5*sin(2*x),'r')
plot(x,2*(sin(x)).^2,'k')
Result:
clc
clear all
close all
x=0:0.01:pi;
subplot(3,1,1)
plot(x,10*sin(x),'g')
subplot(3,1,2)
plot(x,5*sin(2*x),'r')
subplot(3,1,3)
plot(x,2*(sin(x)).^2,'k')
Result: