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


____________________________

If you find this program code useful, then please deposit 5 Indian Rupees in my bank account, as my fee. (Citizens of Pakistan cannot do this.).
I am the woman who wrote this program code.
My name: Anju K.
My bank account number: 30221619108
Bank: State Bank of India, Chakkarakkal branch, India.
IFSC code: SBIN0070728
SWIFT code: SBININBB
BIC code: SBININBB
My email: tc9749@gmail.com .


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.