MATLAB: Undefined function ‘awgn’ for input arguments of type ‘double’.

awgnCommunications Toolboxsimulink

I am using simulink 2012a version and when I cut and paste the code from the help utility, t = 0:.1:10; x = sawtooth(t); % Create sawtooth signal. y = awgn(x,10,'measured'); % Add white Gaussian noise.
I get the above error. I changed "x" to a matrix of zeros(1,10000) and I still get the same error message so it is not the data type of input. Do I need to load a particular library?
Thanks for your help

Best Answer

You need the Communications System Toolbox. Do you have that installed?
Enter
>>ver
to see if you have an entry like:
Communications System Toolbox Version (R2012a)