United International University (UIU) : Submitted By: Md. Abidur Rahman: 024091018 Subject Code: EEE-312 Sec-A
United International University (UIU) : Submitted By: Md. Abidur Rahman: 024091018 Subject Code: EEE-312 Sec-A
(UIU)
Digital Signal Processing Lab.(EEE-312)
Submitted by:
Md. Abidur Rahman
: 024091018
Question-01:
Sum=1;
N = input('The value of N = ');
for i=1:1:N
Sum = Sum*i;
% Sum=1.2.3.......N
end
Sum
Question-02:
function [ Volume, SA ] = cube( EL )
Volume = EL^(3);
SA = 6*EL^(2);
end
Question-03:
x=0:0.01:2*pi;
y1=10*sin(x);
y2=5*sin(2*x);
y3=2*sin(x).^(2);
plot(x,y1)
hold on
plot(x,y2,'r')
plot(x,y3,'k')
Question-04:
x=0:0.01:2*pi;
y1=10*sin(x);
y2=5*sin(2*x);
y3=2*sin(x).^(2);
subplot(3,1,1)
plot(x,y1)
subplot(3,1,2)
plot(x,y2,'r')
subplot(3,1,3)
plot(x,y3,'k')