EXPERIMENT
EXPERIMENT
EXPERIMENT
a) Solve r = (π)1/3
-1 and then compute A=2πrh with h=9.
Solution:
>> r=pi^(1/3)-1
r = 0.4646
>> h=9;
>> A=2*pi*r*h
A = 26.2721
b) Solve log e3
Solution:
>> log (exp(3))
ans = 3
c) Solve log10e3
Solution:
>>log10(exp(3))
ans = 1.3029
d) Solve log(e(3^2)-1)
Solution:
>> log (exp(3^2)-1)
ans = 8.99993
Solution:
>>exp((pi/2)*i)
ans = 0.0000 + 1.0000i
g) Solve log(e(3^2-1))
>>log(exp(3^2-1))
ans = 8
EXPERIMENT-2
x=linspace(0,2*pi);
y=sin(x); plot(x,y)
xlabel('x')
ylabel('y')
title('This graph is created by 2104416')
x=linspace(0,4*pi*10); y=exp(-
0.4*x).*sin(x); subplot(3,1,1) plot(x,y)
xlabel('x') ylabel('y') title('This graph is
created by 2104394')
x=linspace(0,4*pi,50); y=exp(-
0.4*x).*sin(x); subplot(3,1,2) plot(x,y)
xlabel('x') ylabel('y') title('This graph is
created by 2104394')
x=linspace(0,4*pi); y=exp(-
0.4*x).*sin(x); subplot(3,1,3) plot(x,y)
xlabel('x') ylabel('y') title('This graph is
created by 2104416')
Output :
theta=linspace(0,2*pi,50);
x=cos(theta);
y=sin(theta); plot(x,y)
axis('equal') xlabel('x')
ylabel('y')
title('This graph is created by 2104416')
Output :
EXPERIMENT-3
To create MATLAB code for the generation of unit step, unit impulse, exponential and
ramp signal in continuous and discrete domain.
Clear all;
Output :
EXPERIMENT-4
To create MATLAB code for performing operations on continuous time signals like:
addition, multiplication, shifting and scaling.
t=linspace(-10,10);
x1=(t>=0); x2=(t>=-2);
EXPERIMENT-5
syms t x; s=exp(-t^2-
x^2); f=fourier(s)
y=ifourier(f)
Output :
>> exp4
f=
pi^(1/2)*exp(- t^2 - w^2/4)
y=
exp(- t^2 - x^2)
EXPERIMENT-6
Output :