SIGNALS AND SYSTEMS
Experiment 1
Signal Generation
Date: January 1-8, 2018
The purpose of this laboratory is to familiarize you with the basic commands in MATLAB for signal generation and verify the generated signal.
Objectives
1.Learn basic MATLAB commands and syntax, including help system.
2.Use MATLAB ( from Citrix) to generate and plot different signals.
Assignments
Generate and plot the signal x1(t) = 1+ sin (4pt), for t ranging from -1 to 1 in 0.001 increments. Use proper axes labels with title.
Generate and plot the function x2(t) = sin (30pt), for t ranging from -1 to 1 in 0.001 increments. Use proper axes labels with title.
Generate and plot the combination function x3(t) = x1(t)*x2(t) as above. Use proper axes labels with title.
Generate and plot the sum of two cosine waves v1(t) = cos(20pt) and v2(t) = cos(22pt), for t ranging from -1 to 1 in 0.001 increments. Use proper axes labels with title. Let x4(t) =v1(t) +v2(t).
Generate and plot the signal represented by x5(t) = e-0.1t sin (2t/3), for t ranging from 0 to 30 in 0.1 increments. Use proper axes labels with title.
Generate and plot the signal represented by x6(t) = sin (4pt)/ 4pt, for t ranging from -1 to 1 in 0.001 increments. Use proper axes labels with title
Plot the function x7(t) = (1 – e -2t ) cos (60 pt). Use t from 0 to 0.25 in 0.001 increments. Use proper axes labels.
Plot a discrete-time signal x[n] using the following commands:
>> n= -2: 6;
>> x=[ 0 0 1 2 1 0 –1 0 0];
>> stem(n,x);
>> xlabel(‘n’);
>> ylabel(‘x[n]’);
>> title (‘ Plot of a discrete-time Signal’);
The force f(t) in newtons(N) in a certain industrial process increases with the square of time over a particular time interval and cab be expressed as
f(t) = 0.25 t2 .
Use MATLAB to plot the function from t=0 to t= 10 s.
Write MATLAB Program codes and Comments on your observation about each signal plot.
Use help command for all MATLAB commands to know the detail.
MATLAB commands used:
sin cos exp pi plot stem grid xlabel ylabel title
Get Answers For Free
Most questions answered within 1 hours.