Error: Line 91 Column: 44 When calling a function or indexing a variable , use parentheses. Otherwise, check for mismatched delimiters
Show older comments
% QAM Symbol mapper
qamMapper = comm.Rectangular*QAMModulator ( 'Modulator0rder' ), ...
2^bitsPerSubCarrier, 'BitInput' ; true, ...
'Normalization Method' ; 'Average power' );
Answers (1)
Peng Li
on 28 Mar 2020
0 votes
Matlab uses comma not ; Parameter names are without spaces. And you have an extra ) that doesn’t have a ( to match it.
9 Comments
kenny Ade
on 16 Apr 2020
kenny Ade
on 16 Apr 2020
Peng Li
on 9 May 2020
I don't know the QAMModulator function, but just a guess based on your implementaion
qamMapper = comm.Rectangular*QAMModulator ( 'Modulator0rder' ), ... % you have an extra ) here
2^bitsPerSubCarrier, 'BitInput' ; true, ... % replace ; with ,
'Normalization Method' ; 'Average power' ); % replace ; with ,
kenny Ade
on 9 May 2020
Peng Li
on 9 May 2020
I think I said that matlab uses comma not semicolon. And again you’d better copy the complete error message here.
kenny Ade
on 9 May 2020
Peng Li
on 9 May 2020
You need a comma before ... and there isn’t a .... no meaning of this. And again you’d better copy and paste the entire error message here otherwise I can just guess. All what I mentioned are syntax errors.
kenny Ade
on 10 May 2020
Walter Roberson
on 10 May 2020
qamMapper = comm.RectangularQAMModulator('Modulator0rder', 2^bitsPerSubCarrier, 'bitinput', true, 'NormalizationMethod', 'Average Power');
and if you want to split it over several lines,
qamMapper = comm.RectangularQAMModulator('Modulator0rder', 2^bitsPerSubCarrier, ...
'bitinput', true, ...
'NormalizationMethod', 'Average Power');
Note that comm.RectangularQAMModulator is going away, and it is recommended that you convert to qammod(). See https://www.mathworks.com/help/comm/ref/comm.rectangularqammodulator-system-object.html#mw_7ac8462e-0cd3-43aa-a9ff-2033c3c46d37
Categories
Find more on Modulation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!