Hi Saad,
you can consider following the below high-level way to create AM transmitter and receiver models:
AM Transmitter
- Message Signal (Sine Wave): Start with generating a message signal. You can use a Sine Wave block for simplicity.
- Carrier Signal: Generate a carrier signal using another Sine Wave block. The frequency of this signal should be significantly higher than that of the message signal.
- Modulate the Signal: Use the AM Modulator Passband block from the Communications System Toolbox. Connect your message and carrier signals to this block. This block multiplies the message signal with the carrier signal, effectively modulating it.
- Transmitting Antenna (Optional): While not necessary for simulation purposes, you can represent a transmitting antenna using a Gain block to simulate the effect of transmission power.
AM Receiver
- Receive the Signal (Optional): If you're simulating an antenna, you can start with a Gain block to simulate the receiving antenna's characteristics.
- Demodulate the Signal: Use the AM Demodulator Passband block from the Communications System Toolbox to demodulate the received signal. Connect your received signal to this block.
- Extract the Message: The output of the demodulator will be your original message signal. You might need to adjust the gain or filter the output to correctly recover your message.
- Visualize the Output: Use a Scope block or a To Audio Device block (for audio signals) to listen to or visualize the recovered message signal.
I hope this helps!
Animesh