フィルターのクリア

Transmitter Sites in Matlab

9 ビュー (過去 30 日間)
Curious
Curious 2022 年 6 月 6 日
回答済み: Walter Roberson 2022 年 6 月 6 日
Hello
Can we define multiple transmitter sites instead of single, if so, how?
fq = 6e9; % 6 GHz
tx = txsite("Name","MathWorks", ...
"Latitude",42.3001, ...
"Longitude",-71.3504, ...
"Antenna",design(dipole,fq), ...
"AntennaHeight",60, ... % Units: meters
"TransmitterFrequency",fq, ... % Units: Hz
"TransmitterPower",15); % Units: Watts
I have tried as given below but it gives error can some one assist?
%% Definning Position of the transmitter at Margalla Hills
txNames={'Margalla Hills',...
'Karachi Airport',...
'Lahore Airport',...
'Peshawar Airport',...
'Faisalabad Airport'...
'Multan Airport'...
'Quetta Airport'...
'Sialkot Airport'...
'Skardu Airport'};
txLocations = [33.7439 73.0228;...
24.899994 67.168259;...
31.519346 74.409302;...
33.9898 71.5192;...
31.3628 72.9879;...
30.1960 71.4247;...
30.2491 66.9488;...
32.5327 74.3676;...
35.3394 75.5414;...];
txs = txsites('Antenna',yagiUda,'AntennaAngle', 0 ,...
'AntennaHeight',10,'SystemLoss',0,...
'TransmitterFrequency',144e+06,'TransmitterPower',10);
show(txs)
  2 件のコメント
David Meissner
David Meissner 2022 年 6 月 6 日
I would maybe look into the function cellfun. It allows you to run a function on each cell in an array. In this way, it maybe possible to output a cell array of transmitter sites. Also, it is possible to call cellfun inside a cellfun call. Just some thoughts.
Curious
Curious 2022 年 6 月 6 日
It isn't giving me any output or array, it,s a coverage plot which will show the transmitter sites on map.

サインインしてコメントする。

採用された回答

Walter Roberson
Walter Roberson 2022 年 6 月 6 日
txs = txsites('Antenna',yagiUda,'AntennaAngle', 0 ,...
'AntennaHeight',10,'SystemLoss',0,...
'TransmitterFrequency',144e+06,'TransmitterPower',10);
You added an s to the function name.
txs = txsite('Antenna', yagiUda, ...
'AntennaAngle', 0, ...
'AntennaHeight', 10, ...
'SystemLoss', 0, ...
'TransmitterFrequency', 144e+06, ...
'TransmitterPower', 10, ...
'Name', txNames, ...
'Latitude', txLocations(:, 1), ...
'Longitude', txLocations(:, 2), ...
);

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeRF Propagation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by