Hi, I'm new to Matlab and was attempting to use some of the example code for the communications toolbox but I keep getting errors like this:
??? Undefined function or method 'ammod' for input arguments of type 'double'.
I've got the R2008b version of matlab and the comm toolbox as well, possibly its not installed correctly? I've tried searching for this error but have yet to find anything that gives me a clue as to why the error continues to pop up. The code that gave the above error is:
Fs = 8000; % Sampling rate is 8000 samples per second.
Fc = 300; % Carrier frequency in Hz
t = [0:.1*Fs]'/Fs; % Sampling times for .1 second
x = sin(20*pi*t); % Representation of the signal
y = ammod(x,Fc,Fs); % Modulate x to produce y.
subplot(2,1,1); plot(t,x); % Plot x on top.
subplot(2,1,2); plot(t,y)% Plot y below.
Thanks for any input!
15. E-comm in Flash?