Frequency Modulation Using MATLAB

Status
Not open for further replies.

Suraj Majumdar

Newbie level 1
Joined
Aug 9, 2013
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Visit site
Activity points
10
I hope this helps -

clc;
clear all;
fm=50;
fc=200;
mi=10;
t=0:0.0001:0.1;
m=sin(2*pi*fm*t);
subplot(3,1,1);
plot(t,m);
xlabel('Time');
ylabel('Amplitude');
title('Message Signal');
grid on;
c=sin(2*pi*fc*t);
subplot(3,1,2);
plot(t,c);
xlabel('Time');
ylabel('Amplitude');
title('Carrier Signal');
grid on;
y=sin(2*pi*fc*t+(mi*sin(2*pi*fm*t)));
subplot(3,1,3);
plot(t,y);
xlabel('Time');
ylabel('Amplitude');
title('FM Signal');
grid on;

- - - Updated - - -

But i am getting this error msg frequently. Pls help me out with this.

Undefined function or method 'frequency' for input arguments of type 'char'.
 

Hi,
The code is correct and works fine. I even tested it with Matlab.
 

Attachments

  • 8.png
    14.5 KB · Views: 99

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…