Professional Documents
Culture Documents
Lab-Report#01: Communication System
Lab-Report#01: Communication System
Course Title:
Communication System
Title:
Submitted to:
Submitted by:
Sadam Hussain
GCPKI00857
Department:
BEEE (5th)
1
Experiment#01
The name MATLAB stands for Matrix Laboratory. MATLAB was written originally to
provide easy access to matrix software developed by the LINPACK (linear system package)
and EISPACK (Eigen system package) projects. MATLAB [1] is a high-performance
language for technical computing.
Exercise
Plot sine and cosine graph in Matlab that ask user to input amplitude and
frequency And Also change their graph colour and clearly indicate which
graph is for sine and cosine respectively.
Required Software:
Matlab
Procedure:
2
3) Type your code in command window or Select New Live Script from the bar window as
shown in picture below.
3
4) By selecting live Script Editor a New window of live scrip editor will appear on the
screen
7) If there is any syntax error or logical error after running th code try to resolve the error
properly.
4
Matlab Code:
Matlab Output :
5
Discussion :
Sine and cosine are trigonometric ratios and those are complementary to each other. So when
one will plot a graph of both these functions, the graph will just differ by a phase of angle 90
except each point on the cosine wave occurs exactly 1/4 cycle earlier than the corresponding
point on the sine wave. A cosine wave and its corresponding sine wave have the same
frequency, but the cosine wave leads the sine wave by 90 degrees of phase.
Conclusion:
In this experiment problem of sine and cosine wave is performed in order to obtain
the graph and date from the graph desired to us.
Matlab is language of technical computing.
Matlab has a large number of functionality which is easy to understand and solve the
complex engineering problems .
Matlab allow user to quickly solve the complex problems.
Matlab is user centric software as we can get help by typing help all the command can
be found out.
6
7