Undefined variable "comm" or class "comm.RaisedCosineTransmitFilter".
显示 更早的评论
Hi, I am just trying the codes to design a raised cosine filter. There are already codes found in the web http://www.mathworks.com/help/comm/examples/raised-cosine-filtering.html. And what I did what just copy and paste the codes there onto my command window to try out. Below are the codes:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Nsym = 6; % Filter span in symbol durations
beta = 0.5; % Roll-off factor
sampsPerSym = 8; % Upsampling factor
rcosFlt = comm.RaisedCosineTransmitFilter(...
'Shape', 'Normal', ...
'RolloffFactor', beta, ...
'FilterSpanInSymbols', Nsym, ...
'OutputSamplesPerSymbol', sampsPerSym)
% Visualize the impulse response
fvtool(rcosFlt, 'Analysis', 'impulse')
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
I expect it to work, however I am given an error "Undefined variable "comm" or class "comm.RaisedCosineTransmitFilter"."
I have the Signal Processing Toolbox, and even when I tried the above codes in my school computer it also throws out the same error.
As such, I tried to design the raised cosine filter using the function rcosdesign(), again I copied the codes from the example and simply paste it in the command window. Again it throws out the error undefined function 'rcosdesign' for input arguments type double. =(
Can someone help me please.
Thanks.
采纳的回答
更多回答(1 个)
kamal
2017-6-14
0 个投票
i m having 2010, i checked >>ver it shows communication toolbox. but still i get :: Undefined variable "comm" or class "comm.TurboEncoder"
Kindly give solution
2 个评论
Honglei Chen
2017-6-14
编辑:Honglei Chen
2017-6-14
comm.TurboEncoder is introduced in R2012a, according to the reference page
HTH
kamal
2017-7-23
thank u dear
类别
在 帮助中心 和 File Exchange 中查找有关 AI for Wireless 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!