EEEL500 2 . you Signal and System Evaluation

By

Prashanthan Uthayakumar (w1412291)

1 .

(a) Make your own plots of the unit step, and triangular alerts. Now, make use of the same way of create the plots in the rectangular transmission ( ) and the transmission ( ) shown inside the Figure listed below. Include in the report the texts with the programmes you may have used and copies with the obtained plots.

(b) Use MATLAB help to understand xlabel, and ylabel instructions. When creating the plots simply (a) and throughout the report make sure that the axes with the plots are properly branded.

(c) Use several line designs, e. g. thicknesses, styles (broken continuous etc . ), and colors in the made plots. MATLAB help within the plot function (> > help plot) instructs how you can achieve these effects. [30 marks]

a)

Plan of a device step(t)

clear all

time=-3: 0. 01: 5;

ind1=find(time=0);

x(ind1)=0;

x(ind2)=1;

plot(time, by, 'linewidth', 2)

set(gca, 'fontsize', 12)

axis([-3, almost eight, -2, 4])

grid on

xlabel('x');

ylabel('y');

title('Unit Step')

Story of a triangular in shape signal

very clear all

time=-8: 0. 001: 10;

ind1=find(time=-2 & period < 0);

ind3=find(time> =0 & time < 2);

ind4=find(time> =2);

y(ind1)=0. 5;

y(ind2)=1+time(ind2);

y(ind3)=1-time(ind3);

y(ind4)=0. a few;

plot(time, y)

plot(time, sumado a, 'linewidth', 3)

set(gca, 'fontsize', 12)

axis([-3, a few, -1, 2])

grid on

xlabel('x');

ylabel('y');

title('Triangular Signal')

This kind of part of the activity also necessary me to include labels to both the x and y axis making use of the xlabel and ylabel order. In order for myself to reach that, I had to work with: xlabel(‘text') and ylabel(‘text') wherever text can be described as string changing. Approach to generate the presented signal x(t).

First step was to create a Rect(t).

clear every

time=-3: 0. 001: 4;

ind1=find(time=-0. your five & time < zero. 5);

ind3=find(time> 0. 5);

y(ind1)=0;

y(ind2)=1;

y(ind3)=0;

plot(time, y)

plot(time, y, 'linewidth', 3)

set(gca, 'fontsize', 12)

axis([-3, 3, -1, 2])

grid in

xlabel('x');

ylabel('y');

title('Rect(t)')

then multiplying this by the dramatical, to obtain transmission x(t)

obvious all

time=-4: zero. 0001: 5;

ind1=find(time=-4 & time =-2 & period 1);

y(ind1)=0;

y(ind2)=2. 5*time(ind2)+10;

y(ind3)=5;

y(ind4)=6*exp(1-time(ind4))-1;

plot(time, y)

plot(time, sumado a, 'linewidth', 3)

set(gca, 'fontsize', 12)

axis([-6, 8, -3, 8])

grid on

xlabel('x');

ylabel('y');

title('Signal x(t)')

c) In the following task I changed the colour, line breadth and the collection style of the signal to have different variants of one provided plot.

crystal clear all

time=-4: zero. 0001: your five;

ind1=find(time=-4 & time =-2 & period 1);

y(ind1)=0;

y(ind2)=2. 5*time(ind2)+10;

y(ind3)=5;

y(ind4)=6*exp(1-time(ind4))-1;

plot(time, y)

plot(time, con, 'red', 'linewidth', 3)

set(gca, 'fontsize', 12)

axis([-6, 8, -3, 8])

grid on

xlabel('x');

ylabel('y');

title('Signal x(t)')

Employing

plot(time, con, 'red', 'linewidth', 3) I used to be able to change the colour plus the linewidth

crystal clear all

time=-4: 0. 0001: five;

ind1=find(time=-4 & time =-2 & time 1);

y(ind1)=0;

y(ind2)=2. 5*time(ind2)+10;

y(ind3)=5;

y(ind4)=6*exp(1-time(ind4));

plot(time, y)

plot(time, con, 'blue', 'linewidth', 7)

set(gca, 'fontsize', 12)

axis([-6, 8, -3, 8])

grid on

xlabel('x');

ylabel('y');

title('Signal x(t)')

using

plot(time, y, 'blue', 'linewidth', 7) I was capable to change the shade and the linewidth

clear all

time=-4: 0. 0001: 5;

ind1=find(time=-4 & period =-2 & time 1);

y(ind1)=0;

y(ind2)=2. 5*time(ind2)+10;

y(ind3)=5;

y(ind4)=6*exp(1-time(ind4));

plot(time, y)

plot(time, y, 'linewidth', 5, 'Color', 'c')

set(gca, 'fontsize', 12)

axis([-6, almost eight, -3, 8])

grid on

xlabel('x');

ylabel('y');

title('Signal x(t)')

using

plot(time, sumado a, 'linewidth', a few, 'Color', 'c') I was capable to change the color and the linewidth

clear almost all

time=-4: 0. 0001: 5;

ind1=find(time=-4 & period =-2 & time 1);

y(ind1)=0;

y(ind2)=2. 5*time(ind2)+10;

y(ind3)=5;

y(ind4)=6*exp(1-time(ind4));

plot(time, y)

plot(time, y, '--', 'linewidth', several, 'Color', 'm')

set(gca, 'fontsize', 12)...