MATLAB program for FM signal generation

Program Code
% FM signal generation
clc;
close all;
clear all;
fc=input('Please enter the carrier signal frequency in Hz,fc=');
fm=input('Please enter the modulating signal frequency in Hz,fm=');
m=input('Modulation index,m=');
n=0:0.0001:.1;
c=sin(2*pi*fc*n);
M=sin(2*pi*fm*n);
subplot(311);
plot (n,c);
ylabel('Amplitude');
xlabel('Time index');
title('Carrier signal ');
subplot(312);
plot (n,M);
ylabel('Amplitude');
xlabel('Time index');
title('Modulating Signal');
y=sin(2*pi*fc*n+(m.*sin(2*pi*fm*n)));
subplot(313);
plot (n,y);
ylabel('Amplitude');
xlabel('Time index');
title('Frequency Modulated signal');



Example of Output
Please enter the carrier signal frequency in Hz,fc=1000
Please enter the modulating signal frequency in Hz,fm=250

Modulation index,m=2


____________________________

6 comments:

  1. Replies
    1. You are always welcome, respected sir.
      Please feel free to visit this blog http://s5electronicsandcommunication.blogspot.com , whenever you feel like. Thank you very much for spending your precious time, to visit this humble blog and to thank me. I felt honored to hear it from you. I am happy to know that you found this MATLAB program useful. I am greatly obliged to you. It is the support of people like you, that keep this blog going. Most humbly, I request you to share the link to this page http://s5electronicsandcommunication.blogspot.com/2012/10/matlab-program-for-fm-signal-generation_21.html on Facebook and Whatsapp, so that more people may read this program.
      Wish you and your family good health, everlasting happiness and success. May your friends and all your well-wishers be always happy and healthy.

      Delete
  2. Hurrah! In the end I got a weblog from where I be capable of actually get valuable
    facts regarding my study and knowledge.

    ReplyDelete
    Replies
    1. Respected Sir,
      Thank you for your kind words about this weblog of mine. I would like to know your name. I wish you all success in professional life and personal life. May you, your family and all your friends, have good health and happiness.

      Delete
  3. Heya! I know this is somewhat off-topic but I needed to ask.
    Does running a well-established website such as yours take
    a large amount of work? I'm brand new to operating a blog
    however I do write in my journal every day. I'd like to start
    a blog so I caan share my owwn experience and thoughts online.
    Please let me know if yoou have aany suggestions or tips for brand new aspiring blog owners.
    Appreciate it!

    ReplyDelete
  4. Oh my goodness! Amazing article dude! Many thanks, However I am going
    through difficulties with your RSS. I don't understand
    the reason why I cannot subscribe to it. Is there anyone else getting identical RSS problems?
    Anyone who knows the solution can you kindly respond?
    Thanx!!

    ReplyDelete

Please write your opinion about this MATLAB program here, only in English.

For sale

For sale
Indian currency Ten-rupee note in good condition. Issued by the Reserve Bank of India between 22 December 1992 and 21 December 1997. Serial number 52T332603 . Those interested to buy, please contact: Anju K, Email: tc9749@gmail.com . Address: 'Sreyas', House no.7/296, Pulliodi, Kathiroor village, Ponniam east PO, via Ponniam west, Thalassery, Kannur, Kerala - 670641, India.