Given the signal gt with T1 Write the mathematical definitio

Given the signal g(t) with T=1 Write the mathematical definitions of the following g(t) g(t+2) g(t-2) g(2t) g(t2)v All five signals must be plotted in the same plot (using the Matlab function hold) also each plot should be identified (using the Matlab function legend)

Solution

% let the ampllitude of the signal is \" 1 \"

% A=1 for this problem

% first signal generation

T=1;

t=-5:0.01:5;

g1=rectpuls(t,T);

subplot(5,1,1);

plot(t,g);

xlabel(\'time\');

ylabel(\'ampiltude\');

% second signal generation

g2=rectpuls(t+2,T);

subplot(5,1,2);

plot(t,g2);

xlabel(\'time\');

ylabel(\'ampiltude\');

% third signal generation

g3=rectpuls(t-2,T);

subplot(5,1,3);

plot(t,g3);

xlabel(\'time\');

ylabel(\'ampiltude\');

% fourth signal generation

g4=rectpuls(2*t,T);

subplot(5,1,4);

plot(t,g4);

xlabel(\'time\');

ylabel(\'ampiltude\');

% fifth signal generation

g5=rectpuls(t/2,T);

subplot(5,1,5);

plot(t,g5);

xlabel(\'time\');

ylabel(\'ampiltude\');

 Given the signal g(t) with T=1 Write the mathematical definitions of the following g(t) g(t+2) g(t-2) g(2t) g(t2)v All five signals must be plotted in the same
 Given the signal g(t) with T=1 Write the mathematical definitions of the following g(t) g(t+2) g(t-2) g(2t) g(t2)v All five signals must be plotted in the same

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site