I am currently learning about telecommunications but I have some concept issues.
Firstly, does it matter if I am using cosine or sine in the equation? I understand that they are basically the same thing but there is a phase shift difference between them. Should I account for that phase shift?
For instance if I am making a computer program (matlab) that is going to generate an amplitude modulated signal, should I use cosine or sine?
My equation for the program is as follows:
output = amplitude * (1 + depth * cos(2 * pi * modu * (i / exp_rate)));
Where:
modu
is the modulating frequencyexp_rate
is the carrier frequencyi
is the ith pulsedepth
is the depth I want in the modulated frequency
Is it correct?
Note: I am trying to apply amplitude modulation to a train of biphasic pulses. So in the end it should be a train of biphasic pulses going up and down periodically. The amplitude of the ith pulse will follow the modulation waveform and there is no carrier term.