Академический Документы
Профессиональный Документы
Культура Документы
be applied. The plot function usually takes two vectors and plot data points according to given
vector data. In this case it will time Vs signal. Subplot function is used when two or more plots are
drawn on the same figure. As title function suggests it helps to write title of the graph in the figure.
For further details type help plot or help subplot in the command prompt and learn the syntax.
6.5 ALGORITHM
1. Create a vector t (time) that varies from zero to two or three cycles with an interval 1/1000 or
1/5000.
2. Create a message signal with single sine frequency. All the frequency used in message signal
should be less than the carrier frequency likewise amplitude of message signals should be less
than carrier amplitude. [AmSin(2pfmt)]
3. Create a carrier signal. [AcCos(2pfct)]
4. Create the modulated signal using the FM equation [Ac Cos(2pfct+Sin(2pfmt) ]. stands for
modulation index. Choose value more than 1.
Lowzero=15;
lowzero=Lowzero+2*LowZero;
3. Write a code to plot 10Hz cos signal.
4. What is meant by script m- file and function m- file?
5. Find the answer for following statement 10 / 2 \ 5 - 3 + 2 * 4
ASSESSMENT
Prelab
: 30 marks
(program)
Lab performance
: 30 marks
Viva-voce
: 15 marks