Error: Line 91 Column: 44 When calling a function or indexing a variable , use parentheses. Otherwise, check for mismatched delimiters

1 vue (au cours des 30 derniers jours)
% QAM Symbol mapper
qamMapper = comm.Rectangular*QAMModulator ( 'Modulator0rder' ), ...
2^bitsPerSubCarrier, 'BitInput' ; true, ...
'Normalization Method' ; 'Average power' );

Réponses (1)

Peng Li
Peng Li le 28 Mar 2020
Matlab uses comma not ; Parameter names are without spaces. And you have an extra ) that doesn’t have a ( to match it.
  9 commentaires
kenny Ade
kenny Ade le 10 Mai 2020
ERROR: invalid expression when calling expression ..other wise check for delimeters
Walter Roberson
Walter Roberson le 10 Mai 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

Connectez-vous pour commenter.

Community Treasure Hunt

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

Start Hunting!

Translated by