Invalid expression. Check for missing multiplication operator, missing or unbalanced delimiters, or other syntax error. To construct matrices, use brackets instead of parenthe

rxSensitivity = -90; % Units: dBm
rxs = rxsite('RX',Balcova,Manisa,Kemalpasa,Karsiyaka,Guzelbahce ...
'Latitude',rxLocations(:,1),(:,2),(:,3),(:,4),(:,5), ...
'Longitude',rxLocations(:,1),(:,2),(:,3),(:,4),(:,5), ...
'Antenna',design(dipole,tx.TransmitterFrequency), ...
'ReceiverSensitivity',rxSensitivity); % Units: dBm
In this code i got this error in each row's apostrophes. How can i solve it. Thanks

1 Comment

rxLocations(:,1),(:,2),(:,3),(:,4),(:,5)
Invalid use of operator.

Error in connector.internal.fevalMatlab

Error in connector.internal.fevalJSON
This syntax is not valid in Matlab. What are you trying to do?

Sign in to comment.

Answers (1)

rxLocations(:,1) is valid, but after that you give just index with (:,2)
the variable is missing here, maybe it should be rxLocations(:,2) and so on

Products

Release

R2021a

Asked:

on 8 Jun 2021

Answered:

on 8 Jun 2021

Community Treasure Hunt

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

Start Hunting!