Undefined function 'awgn' for input arguments of type 'double'.
显示 更早的评论
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
5 个评论
TAB
2012-6-14
Are you using above code in Embedded Matlab function block ?
Mark
2012-6-14
TAB
2012-6-14
"I am using simulink 2012a version" -- what it means ?
Do you mean Matlab 2012 version ?
Mark
2012-6-14
Avinas Vem
2012-9-18
I have a similar problem.Weird thing is I had my awgn function working yesterday.But today on the same system it doesn't work.And yes I have my communication systems toolbox installed.(ver tells me that i have that toolbox)
snr=3; x=ones(10,1)'; y=awgn(x,snr); Undefined function 'awgn' for input arguments of type 'double' " is the message displayed.
Should i unlock the Comm Systems toolbox or something?
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Propagation and Channel Models 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!