Undefined variable "comm" or class "comm.Rais​edCosineTr​ansmitFilt​er".

조회 수: 5 (최근 30일)
Yingyu
Yingyu 2014년 1월 27일
댓글: kamal 2017년 7월 23일
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.
  댓글 수: 2
Walter Roberson
Walter Roberson 2014년 1월 27일
Which MATLAB version are you using?
Ken
Ken 2014년 3월 2일
편집: Ken 2014년 3월 2일
Hi Yingyu,
Kindly let us know what you did to fix the error "Undefined variable "comm" or class "comm.RaisedCosineTransmitFilter""
I am also facing a similar issue with the "comm.AGC" command. I use Matlab R2012b
K

댓글을 달려면 로그인하십시오.

채택된 답변

Honglei Chen
Honglei Chen 2014년 3월 3일
편집: Honglei Chen 2017년 6월 14일
You need Communications System Toolbox license to use comm.RaisedCosineTransmitFilter. You can use
>> ver
to see if you have that toolbox installed.
HTH
  댓글 수: 1
Honglei Chen
Honglei Chen 2017년 6월 14일
If you look at the bottom of the reference page
https://www.mathworks.com/help/comm/ref/comm.raisedcosinetransmitfilter-class.html
It says the feature is introduced in R2013b

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

kamal
kamal 2017년 6월 14일
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

카테고리

Help CenterFile Exchange에서 AI for Wireless에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by