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

9 views (last 30 days)
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
Daniel Pollard
Daniel Pollard on 8 Jun 2021
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)

Jonas
Jonas on 8 Jun 2021
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

Categories

Find more on MATLAB in Help Center and File Exchange

Products


Release

R2021a

Community Treasure Hunt

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

Start Hunting!