How to incorporate a Custom Scalar into a MATLAB Custom Loss Plugin Script?

« Go Back


Requirements and Setup
Place the MATLAB plugin script in the scenario folder and load into the Custom Models tab of the Scenario->RF->Environment properties.
Change the registered input to reference the facility of interest in the Source and RefSource attributes:

  e.g. altitudeAboveTerrain = {'ArgumentName','altitudeAboveTerrain','Name',...
            'ArgumentType','Input','Source','Facility/Facility2', 'RefSource',...

The MATLAB plugin script takes the height above ground (or altitude above terrain) for a facility and converts the value to a custom loss in dB.