Radar Designer MCP Control
Launch and control the MATLAB Radar Designer app programmatically via MCP. Use this skill when a user asks about radar design parameters, wants to configure a radar system, compare radar types, analyze radar performance, or visualize radar metrics interactively in the Radar Designer app.
On Entry
When this skill is first invoked without a specific user request, present the following example prompts to inspire the user:
- Design a tracking radar at 5 GHz with 2 MW peak power at 1500 km range for a 1 sq meter target
- Compare airport radar performance at 2.8 GHz vs 5.6 GHz — which can achieve 150 km range for a 10 sq meter target?
- Set up a weather radar and show how heavy rain (16 mm/hr) degrades detection range
- Configure an automotive radar at 77 GHz with electronic scanning for 100 meters range
- Add a 200 km max range requirement to my current radar design and check if it meets the objective
Then wait for the user to type their own radar design question.
IMPORTANT
- Never generate MATLAB scripts for the user that call the wrapper functions directly. These are for the agent's internal use only. When the user asks for a script, use only the built-in export commands via
radarDesignerExport.
- When greeting the user, simply ask about their radar design goals (type, frequency, power, requirements) without referencing the underlying mechanism.
When to Use
- User asks to design, configure, or analyze a radar system
- User wants to launch or open the Radar Designer app
- User asks to change radar parameters (frequency, power, antenna, etc.)
- User wants to compare different radar types (tracking, airport, airborne, etc.)
- User asks about radar performance metrics (max range, SNR, detection probability, etc.)
- User wants to load or save a radar design session (.mat file)
- User asks about target or environment configuration for radar analysis
- User wants to set requirements/objectives for a radar design
When NOT to Use
- User asks about general MATLAB programming unrelated to radar design
- User wants to use Radar Toolbox functions directly (without the Radar Designer app)
- User asks about Simulink radar models or Phased Array System Toolbox without the app
- User wants to create radar waveforms or signals outside the app context
- User asks about radar theory or equations without wanting to use the app
Prerequisites
- MATLAB MCP server must be running and connected
- The
mcp__matlab__evaluate_matlab_code tool must be available
- The Radar Toolbox must be installed in the MATLAB instance
- The skill's
scripts/ directory must be on the MATLAB path (set via project_path)
Code Reference
Consult code-reference.md for detailed code patterns — including multi-radar comparison, session management, export, and range auto-tuning examples. The patterns below are summaries; code-reference.md is authoritative.
Wrapper Scripts
All Radar Designer operations go through 5 p-coded wrapper scripts in scripts/. Always set project_path to the skill's root directory when calling mcp__matlab__evaluate_matlab_code so the scripts are on the MATLAB path.
radarDesignerSession — App lifecycle and sessions
| Action |
Call |
Returns |
| Launch app |
h = radarDesignerSession('launch') |
App handle h |
| Reuse existing |
h = radarDesignerSession('launch', h) |
Same h if valid |
| Start new |
radarDesignerSession('startNew', h, templateName) |
— |
| Save session |
radarDesignerSession('save', h, filePath) |
— |
| Load session |
radarDesignerSession('load', h, filePath) |
— |
Templates: 'AirborneRadarSpec', 'AirportRadarSpec', 'AutomotiveRadarSpec', 'TrackingRadarSpec', 'WeatherRadarSpec'
radarDesignerParam — Get/set parameters and requirements
| Action |
Call |
Returns |
| Set parameter |
radarDesignerParam(h, 'set', specType, propName, value) |
— |
| Get parameter |
val = radarDesignerParam(h, 'get', specType, propName) |
Property value |
| Set requirement |
radarDesignerParam(h, 'setRequirement', reqIndex, propName, value) |
— |
specType: 'Radar', 'Target', 'Environment'
radarDesignerResults — Read results and auto-tune
| Action |
Call |
Returns |
| Read results |
T = radarDesignerResults(h, 'read') |
Table (16 metrics) |
| Auto-tune range |
result = radarDesignerResults(h, 'autoTune', range_m) |
Struct |
Results table columns: Metric, Units, Threshold, Objective, Result_<radarName>, Status_<radarName> (PASS/WARN/FAIL)
Auto-tune result fields: requestedRange_km, achievedRange_km, ratio, converged
radarDesignerMultiRadar — Multiple radar management
| Action |
Call |
Returns |
| Add template |
radarDesignerMultiRadar(h, 'add', templateName) |
— |
| Clone current |
radarDesignerMultiRadar(h, 'clone') |
— |
| Select by index |
radarDesignerMultiRadar(h, 'select', index) |
— |
| Delete current |
radarDesignerMultiRadar(h, 'delete') |
— |
| List names |
names = radarDesignerMultiRadar(h, 'names') |
Cell array |
Add templates: 'AirborneRadar', 'AirportRadar', 'AutomotiveRadar', 'TrackingRadar', 'WeatherRadar'
radarDesignerExport — Built-in export
The second argument must be an export type string — not a file path. Passing a file path (e.g., fullfile(...)) will error.
| App Menu Item |
Call |
Description |
| Export Detectability Analysis MATLAB Script |
radarDesignerExport(h, 'detectability') |
SNR vs Range, Pd vs Range, Environmental Losses, Link Budget |
| Export Vertical Coverage MATLAB Script |
radarDesignerExport(h, 'coverage') |
Vertical coverage plot |
| Generate Metrics Report |
radarDesignerExport(h, 'report') |
Formatted report of numeric metrics |
| Export Radar Data Generator MATLAB Script |
radarDesignerExport(h, 'rdg') |
Simulate radar detecting target in dynamic scenario (no refraction) |
| — Effective Earth Radius Model |
radarDesignerExport(h, 'rdg', 'effectiveearth') |
Requires non-free-space, curved Earth, std/low/mid/high latitude atmosphere |
| — CRPL Exponential Reference Model |
radarDesignerExport(h, 'rdg', 'crpl') |
Same environment requirements as Effective Earth |
Workflow
Step 1: Launch the App
h = radarDesignerSession('launch');
Always check if h already exists:
if ~exist('h','var') || ~isvalid(h)
h = radarDesignerSession('launch');
end
Step 2: Select a Radar Template
radarDesignerSession('startNew', h, 'TrackingRadarSpec');
Step 3: Set Parameters
radarDesignerParam(h, 'set', 'Radar', 'Frequency', 5e9); % 5 GHz
radarDesignerParam(h, 'set', 'Radar', 'PeakPower', 2e6); % 2 MW
radarDesignerParam(h, 'set', 'Target', 'RCS', 1); % 1 m²
radarDesignerParam(h, 'set', 'Environment', 'RainRate', 4); % 4 mm/hr
All values in SI units: frequency in Hz, power in W, range in m, etc.
Step 3a: Map User Objectives to Requirements
When the user states a performance goal, set it as the Threshold on the matching requirement.
| User says |
Req Index |
Example call |
| "150 km range" |
2 (MaxRange) |
radarDesignerParam(h, 'setRequirement', 2, 'Threshold', 150e3) |
| "10 m range resolution" |
6 (RangeResolution) |
radarDesignerParam(h, 'setRequirement', 6, 'Threshold', 10) |
| "0.5° azimuth accuracy" |
10 (AzimuthAccuracy) |
radarDesignerParam(h, 'setRequirement', 10, 'Threshold', 0.5) |
| "100 m/s first blind speed" |
7 (FirstBlindSpeed) |
radarDesignerParam(h, 'setRequirement', 7, 'Threshold', 100) |
| "5 km min range" |
4 (MinRange) |
radarDesignerParam(h, 'setRequirement', 4, 'Threshold', 5e3) |
Set both Threshold and Objective to the same value unless the user distinguishes a minimum acceptable (Threshold) from a desired goal (Objective).
Step 3b: Range Auto-Tuning (MANDATORY when user specifies a range)
If the user specifies a target range, you MUST run auto-tune BEFORE reading/reporting results:
result = radarDesignerResults(h, 'autoTune', 300e3); % 300 km target
The auto-tune adjusts peak power (and gain if needed) so the achieved range is within ±15% of the user's request. It also sets the MaxRange requirement threshold to the user's requested range.
Skip this step ONLY if the user did not mention a specific range target.
Step 4: Read Analysis Results
T = radarDesignerResults(h, 'read');
The returned table has 16 rows (one per metric) with columns: Metric, Units, Threshold, Objective, and per-radar Result_<name> and Status_<name> columns.
Status values: PASS (meets objective), WARN (between threshold and objective), FAIL (does not meet threshold).
Step 5: Multi-Radar, Sessions, Export
See code-reference.md for complete patterns.
Complete Property Reference
Radar Properties (Settable)
Waveform
| Property |
Description |
Units |
Example |
Frequency |
Carrier frequency |
Hz |
3e9 |
PulseBandwidth |
Pulse bandwidth |
Hz |
20e6 |
PeakPower |
Peak transmit power |
W |
15e6 |
pulsewidth |
Pulse duration |
s |
1e-3 |
prf |
Pulse repetition frequency |
Hz |
1000 |
CarrierWaveInput |
Input type for carrier wave |
enum |
'Frequency' or 'Wavelength' |
PowerInput |
Input type for power |
enum |
'PeakPower' or 'AveragePower' |
PulseDurationInput |
Input type for duration |
enum |
'PulseWidth' or 'DutyCycle' |
PulseRepetitionInput |
Input type for PRF |
enum |
'PRF' or 'PRI' |
Noise
| Property |
Description |
Units |
Example |
SystemNoiseInput |
Noise input type |
enum |
'Temperature' or 'Figure' |
NoiseTemperature |
System noise temperature |
K |
290 |
referenceNoiseTemperature |
Reference noise temp |
K |
290 |
QuantizationNoise |
Enable quantization noise |
logical |
true/false |
QuantizationNumBits |
ADC bits |
integer |
12 |
QuantizationDynamicRange |
ADC dynamic range |
dB |
60 |
Antenna
| Property |
Description |
Units |
Example |
AntennaHeight |
Antenna height above ground |
m |
75 |
TiltAngle |
Antenna tilt angle |
deg |
0 |
Polarization |
Antenna polarization |
enum |
'H', 'V', 'Circular' |
TxGain |
Transmit antenna gain |
dBi |
40 |
TxAzBeamwidth |
Tx azimuth beamwidth |
deg |
2 |
TxElBeamwidth |
Tx elevation beamwidth |
deg |
2 |
DifferentRx |
Use different Rx antenna |
logical |
false |
RxGain |
Receive antenna gain |
dBi |
40 |
RxAzBeamwidth |
Rx azimuth beamwidth |
deg |
2 |
RxElBeamwidth |
Rx elevation beamwidth |
deg |
2 |
TxGainInput |
Tx gain input mode |
enum |
'FromAntennaPattern' or 'SincPattern' |
RxGainInput |
Rx gain input mode |
enum |
'FromAntennaPattern' or 'SincPattern' |
TxSincInput |
Tx sinc pattern option |
enum |
'Sinc' or 'Gaussian' |
Scanning
| Property |
Description |
Units |
Example |
Scanning |
Scan type |
enum |
'None', 'Mechanical', 'Electronic' |
AzScanSectorMech |
Mechanical az scan sector |
deg |
360 |
AzScanSectorElec |
Electronic az scan sector |
deg |
120 |
ElScanStart |
Elevation scan start |
deg |
0 |
ElScanStop |
Elevation scan stop |
deg |
30 |
Detection
| Property |
Description |
Units |
Example |
Pfa |
Probability of false alarm |
probability |
1e-6 |
NumPulses |
Number of pulses integrated |
integer |
10 |
PulseIntegration |
Integration type |
enum |
'Coherent', 'Noncoherent' |
NumCPIs |
Number of CPIs |
integer |
1 |
BinaryIntegration |
Enable binary integration |
logical |
false |
NumBinaryDetections |
Binary detection threshold |
integer |
depends |
MofNCPIIntegration |
Enable M-of-N CPI integration |
logical |
false |
MNumCPIs |
M threshold for M-of-N |
integer |
depends |
Track Confirmation
| Property |
Description |
Units |
Example |
ConfirmationThreshM |
M for M/N confirmation |
integer |
3 |
ConfirmationThreshN |
N for M/N confirmation |
integer |
5 |
TrackUpdateInput |
Track update input type |
enum |
'TrackUpdateRate' or 'TrackUpdateTime' |
TrackUpdateTime |
Track update time |
s |
1 |
Signal Processing
| Property |
Description |
Units |
Example |
STC |
Enable STC |
logical |
false |
STCCutOffRange |
STC cutoff range |
m |
50000 |
STCExponent |
STC exponent |
scalar |
4 |
CFAR |
Enable CFAR |
logical |
false |
CFARNumCells |
CFAR reference cells |
integer |
20 |
CFARMethod |
CFAR method |
enum |
'CA', 'OS', 'GO', 'SO' |
MTI |
Enable MTI filter |
logical |
false |
MTICanceller |
MTI canceller order |
integer |
2 |
MTINullVelocity |
MTI null velocity |
m/s |
0 |
MTIMethod |
MTI method |
enum |
depends |
Eclipsing |
Enable eclipsing loss |
logical |
false |
CustomLoss |
Additional custom loss |
dB |
0 |
Target Properties
Do not use 'Height' as a property name. The property is TargetHeight, not Height. The value 'Height' is an enum value for TargetPositionInputType, not a settable property.
| Property |
Description |
Units |
Example |
RCS |
Radar cross section |
m² |
1 |
SwerlingModel |
Swerling fluctuation model |
enum |
'Swerling0'...'Swerling4' |
TargetPositionInputType |
Input type |
enum |
'Height' or 'Elevation' |
TargetHeight |
Target height/altitude |
m |
10000 |
TargetElevation |
Target elevation angle |
deg |
5 |
MaxAcceleration |
Max target acceleration |
m/s² |
50 |
Name |
Target name |
string |
'Target 1' |
Environment Properties
| Property |
Description |
Units |
Example |
FreeSpace |
Free space propagation |
logical |
true |
AtmosphericGasLoss |
Gas absorption enabled |
logical |
true |
LensLoss |
Lens effect enabled |
logical |
true |
PropagationFactor |
Propagation factor model |
logical |
true |
EarthModel |
Earth model type |
enum |
'Flat', 'Curved' |
SurfaceType |
Surface type |
enum |
'Sea', 'Land', 'Custom' |
RainRate |
Rain rate |
mm/hr |
4 |
PrecipitationType |
Precipitation type |
enum |
'Rain', 'Snow', 'Fog', 'Cloud' |
SeaStateNumber |
Sea state (0-7) |
integer |
3 |
LandType |
Land type |
enum |
depends |
VegetationType |
Vegetation type |
enum |
depends |
EffectiveEarthRadius |
Effective earth radius |
m |
8500000 |
Name |
Environment name |
string |
'Environment 1' |
Requirement Specifications
| Index |
Name |
Description |
| 1 |
MaxRangePd |
Max range at detection probability |
| 2 |
MaxRange |
Maximum detection range |
| 3 |
MDS |
Minimum detectable signal |
| 4 |
MinRange |
Minimum range |
| 5 |
UnambiguousRange |
Unambiguous range |
| 6 |
RangeResolution |
Range resolution |
| 7 |
FirstBlindSpeed |
First blind speed |
| 8 |
RangeRateResolution |
Range-rate resolution |
| 9 |
RangeAccuracy |
Range accuracy |
| 10 |
AzimuthAccuracy |
Azimuth accuracy |
| 11 |
ElevationAccuracy |
Elevation accuracy |
| 12 |
RangeRateAccuracy |
Range-rate accuracy |
| 13 |
PtrueTrack |
True track probability |
| 14 |
PfalseTrack |
False track probability |
| 15 |
EIRP |
EIRP |
| 16 |
PowerAperture |
Power-aperture product |
Each requirement has: Objective, Threshold.
Presenting Results
Always present results to the user in the following structured format:
1. Summary Table
Use Unicode box-drawing characters to render a clean table.
Single radar:
┌───────────────────────┬────────────┬────────┐
│ Metric │ Value │ Status │
├───────────────────────┼────────────┼────────┤
│ Max Range │ 315.1 km │ PASS │
├───────────────────────┼────────────┼────────┤
│ Range Resolution │ 7.5 m │ PASS │
├───────────────────────┼────────────┼────────┤
│ First Blind Speed │ 53.5 m/s │ WARN │
└───────────────────────┴────────────┴────────┘
Multi-radar comparison:
┌───────────────────────┬────────────┬────────────┬─────────┐
│ Metric │ Radar A │ Radar B │ Winner │
├───────────────────────┼────────────┼────────────┼─────────┤
│ Max Range │ 315.1 km │ 222.6 km │ Radar A │
├───────────────────────┼────────────┼────────────┼─────────┤
│ First Blind Speed │ 53.5 m/s │ 26.8 m/s │ Radar A │
└───────────────────────┴────────────┴────────────┴─────────┘
Table rules:
- Show only metrics that are relevant to the user's question or that differ meaningfully between radars (not all 16 by default)
- If the user asks for a "full report", show all 16 metrics
- Include display units in the value cells (km, m/s, dBW, etc.)
- Use the Status column values directly from the results table (PASS/WARN/FAIL)
2. Key Takeaways
After the table, provide 2-4 bullet points covering:
- The most significant performance tradeoffs
- Any surprising results or requirement failures
- What factor is limiting performance (e.g., rain loss, duty cycle, antenna gain)
- Impact of the user's parameter change (if they modified something)
3. Verdict
End with a 1-2 sentence summary or recommendation.
Conventions
UI Auto-Updates: All parameter changes fire events that update the web UI automatically — no manual refresh needed.
Handle Persistence: The variable h must persist in the MATLAB base workspace between calls. Each evaluate_matlab_code call shares the same workspace, so h remains available.
Startup Timing: The app takes 5-10 seconds to initialize. radarDesignerSession('launch') handles the wait automatically.
Always Use project_path: When calling mcp__matlab__evaluate_matlab_code, set project_path to the skill's root directory so the wrapper scripts in scripts/ are on the MATLAB path.
Property Names Are Case-Sensitive: Use exact names from the property reference tables above.
Range Auto-Tuning Is Mandatory: When the user specifies a target range, ALWAYS run radarDesignerResults(h, 'autoTune', range_m) BEFORE reading results. Never report a design that overshoots or undershoots the user's requested range by more than 30%.
Always Report Pass/Fail: When presenting results, always include the Status (PASS/WARN/FAIL) for each metric and explicitly call out which requirements are not met.
SI Units: All parameter values must be in SI units — frequency in Hz (not GHz), power in W (not MW), range in m (not km).
Always Consult code-reference.md: Before writing code for multi-radar comparison, session management, export, or before/after analysis, load and follow the patterns in code-reference.md.
Copyright 2026 The MathWorks, Inc.
1---2name: matlab-design-radar3description: Launch and control the MATLAB Radar Designer app programmatically via MCP. Use when designing radar systems, configuring parameters, comparing radar types, analyzing performance metrics, or managing radar design sessions.4license: https://www.mathworks.com/content/dam/mathworks/license/pmrl/license.md5metadata:6 source: https://skillmd.com/skills/matlab/matlab-design-radar7 author: MathWorks8 version: "1.1"9---1011# Radar Designer MCP Control1213Launch and control the MATLAB Radar Designer app programmatically via MCP. Use this skill when a user asks about radar design parameters, wants to configure a radar system, compare radar types, analyze radar performance, or visualize radar metrics interactively in the Radar Designer app.1415## On Entry1617When this skill is first invoked without a specific user request, present the following example prompts to inspire the user:18191. Design a tracking radar at 5 GHz with 2 MW peak power at 1500 km range for a 1 sq meter target202. Compare airport radar performance at 2.8 GHz vs 5.6 GHz — which can achieve 150 km range for a 10 sq meter target?213. Set up a weather radar and show how heavy rain (16 mm/hr) degrades detection range224. Configure an automotive radar at 77 GHz with electronic scanning for 100 meters range235. Add a 200 km max range requirement to my current radar design and check if it meets the objective2425Then wait for the user to type their own radar design question.2627**IMPORTANT**28- Never generate MATLAB scripts for the user that call the wrapper functions directly. These are for the agent's internal use only. When the user asks for a script, use only the built-in export commands via `radarDesignerExport`.29- When greeting the user, simply ask about their radar design goals (type, frequency, power, requirements) without referencing the underlying mechanism.3031## When to Use3233- User asks to design, configure, or analyze a radar system34- User wants to launch or open the Radar Designer app35- User asks to change radar parameters (frequency, power, antenna, etc.)36- User wants to compare different radar types (tracking, airport, airborne, etc.)37- User asks about radar performance metrics (max range, SNR, detection probability, etc.)38- User wants to load or save a radar design session (.mat file)39- User asks about target or environment configuration for radar analysis40- User wants to set requirements/objectives for a radar design4142## When NOT to Use4344- User asks about general MATLAB programming unrelated to radar design45- User wants to use Radar Toolbox functions directly (without the Radar Designer app)46- User asks about Simulink radar models or Phased Array System Toolbox without the app47- User wants to create radar waveforms or signals outside the app context48- User asks about radar theory or equations without wanting to use the app4950## Prerequisites5152- MATLAB MCP server must be running and connected53- The `mcp__matlab__evaluate_matlab_code` tool must be available54- The Radar Toolbox must be installed in the MATLAB instance55- The skill's `scripts/` directory must be on the MATLAB path (set via `project_path`)5657## Code Reference5859Consult [code-reference.md](references/code-reference.md) for detailed code patterns — including multi-radar comparison, session management, export, and range auto-tuning examples. The patterns below are summaries; `code-reference.md` is authoritative.6061---6263## Wrapper Scripts6465All Radar Designer operations go through 5 p-coded wrapper scripts in `scripts/`. Always set `project_path` to the skill's root directory when calling `mcp__matlab__evaluate_matlab_code` so the scripts are on the MATLAB path.6667### radarDesignerSession — App lifecycle and sessions6869| Action | Call | Returns |70|--------|------|---------|71| Launch app | `h = radarDesignerSession('launch')` | App handle `h` |72| Reuse existing | `h = radarDesignerSession('launch', h)` | Same `h` if valid |73| Start new | `radarDesignerSession('startNew', h, templateName)` | — |74| Save session | `radarDesignerSession('save', h, filePath)` | — |75| Load session | `radarDesignerSession('load', h, filePath)` | — |7677**Templates:** `'AirborneRadarSpec'`, `'AirportRadarSpec'`, `'AutomotiveRadarSpec'`, `'TrackingRadarSpec'`, `'WeatherRadarSpec'`7879### radarDesignerParam — Get/set parameters and requirements8081| Action | Call | Returns |82|--------|------|---------|83| Set parameter | `radarDesignerParam(h, 'set', specType, propName, value)` | — |84| Get parameter | `val = radarDesignerParam(h, 'get', specType, propName)` | Property value |85| Set requirement | `radarDesignerParam(h, 'setRequirement', reqIndex, propName, value)` | — |8687**specType:** `'Radar'`, `'Target'`, `'Environment'`8889### radarDesignerResults — Read results and auto-tune9091| Action | Call | Returns |92|--------|------|---------|93| Read results | `T = radarDesignerResults(h, 'read')` | Table (16 metrics) |94| Auto-tune range | `result = radarDesignerResults(h, 'autoTune', range_m)` | Struct |9596**Results table columns:** `Metric`, `Units`, `Threshold`, `Objective`, `Result_<radarName>`, `Status_<radarName>` (PASS/WARN/FAIL)9798**Auto-tune result fields:** `requestedRange_km`, `achievedRange_km`, `ratio`, `converged`99100### radarDesignerMultiRadar — Multiple radar management101102| Action | Call | Returns |103|--------|------|---------|104| Add template | `radarDesignerMultiRadar(h, 'add', templateName)` | — |105| Clone current | `radarDesignerMultiRadar(h, 'clone')` | — |106| Select by index | `radarDesignerMultiRadar(h, 'select', index)` | — |107| Delete current | `radarDesignerMultiRadar(h, 'delete')` | — |108| List names | `names = radarDesignerMultiRadar(h, 'names')` | Cell array |109110**Add templates:** `'AirborneRadar'`, `'AirportRadar'`, `'AutomotiveRadar'`, `'TrackingRadar'`, `'WeatherRadar'`111112### radarDesignerExport — Built-in export113114> **The second argument must be an export type string — not a file path.** Passing a file path (e.g., `fullfile(...)`) will error.115116| App Menu Item | Call | Description |117|---------------|------|-------------|118| Export Detectability Analysis MATLAB Script | `radarDesignerExport(h, 'detectability')` | SNR vs Range, Pd vs Range, Environmental Losses, Link Budget |119| Export Vertical Coverage MATLAB Script | `radarDesignerExport(h, 'coverage')` | Vertical coverage plot |120| Generate Metrics Report | `radarDesignerExport(h, 'report')` | Formatted report of numeric metrics |121| Export Radar Data Generator MATLAB Script | `radarDesignerExport(h, 'rdg')` | Simulate radar detecting target in dynamic scenario (no refraction) |122| — Effective Earth Radius Model | `radarDesignerExport(h, 'rdg', 'effectiveearth')` | Requires non-free-space, curved Earth, std/low/mid/high latitude atmosphere |123| — CRPL Exponential Reference Model | `radarDesignerExport(h, 'rdg', 'crpl')` | Same environment requirements as Effective Earth |124125---126127## Workflow128129### Step 1: Launch the App130131```matlab132h = radarDesignerSession('launch');133```134135Always check if `h` already exists:136137```matlab138if ~exist('h','var') || ~isvalid(h)139 h = radarDesignerSession('launch');140end141```142143### Step 2: Select a Radar Template144145```matlab146radarDesignerSession('startNew', h, 'TrackingRadarSpec');147```148149### Step 3: Set Parameters150151```matlab152radarDesignerParam(h, 'set', 'Radar', 'Frequency', 5e9); % 5 GHz153radarDesignerParam(h, 'set', 'Radar', 'PeakPower', 2e6); % 2 MW154radarDesignerParam(h, 'set', 'Target', 'RCS', 1); % 1 m²155radarDesignerParam(h, 'set', 'Environment', 'RainRate', 4); % 4 mm/hr156```157158**All values in SI units:** frequency in Hz, power in W, range in m, etc.159160### Step 3a: Map User Objectives to Requirements161162When the user states a performance goal, set it as the Threshold on the matching requirement.163164| User says | Req Index | Example call |165|-----------|-----------|--------------|166| "150 km range" | 2 (`MaxRange`) | `radarDesignerParam(h, 'setRequirement', 2, 'Threshold', 150e3)` |167| "10 m range resolution" | 6 (`RangeResolution`) | `radarDesignerParam(h, 'setRequirement', 6, 'Threshold', 10)` |168| "0.5° azimuth accuracy" | 10 (`AzimuthAccuracy`) | `radarDesignerParam(h, 'setRequirement', 10, 'Threshold', 0.5)` |169| "100 m/s first blind speed" | 7 (`FirstBlindSpeed`) | `radarDesignerParam(h, 'setRequirement', 7, 'Threshold', 100)` |170| "5 km min range" | 4 (`MinRange`) | `radarDesignerParam(h, 'setRequirement', 4, 'Threshold', 5e3)` |171172Set both Threshold and Objective to the same value unless the user distinguishes a minimum acceptable (Threshold) from a desired goal (Objective).173174### Step 3b: Range Auto-Tuning (MANDATORY when user specifies a range)175176**If the user specifies a target range**, you MUST run auto-tune BEFORE reading/reporting results:177178```matlab179result = radarDesignerResults(h, 'autoTune', 300e3); % 300 km target180```181182The auto-tune adjusts peak power (and gain if needed) so the achieved range is within ±15% of the user's request. It also sets the MaxRange requirement threshold to the user's requested range.183184Skip this step ONLY if the user did not mention a specific range target.185186### Step 4: Read Analysis Results187188```matlab189T = radarDesignerResults(h, 'read');190```191192The returned table has 16 rows (one per metric) with columns: `Metric`, `Units`, `Threshold`, `Objective`, and per-radar `Result_<name>` and `Status_<name>` columns.193194Status values: `PASS` (meets objective), `WARN` (between threshold and objective), `FAIL` (does not meet threshold).195196### Step 5: Multi-Radar, Sessions, Export197198See [code-reference.md](references/code-reference.md) for complete patterns.199200---201202## Complete Property Reference203204### Radar Properties (Settable)205206#### Waveform207| Property | Description | Units | Example |208|----------|-------------|-------|---------|209| `Frequency` | Carrier frequency | Hz | `3e9` |210| `PulseBandwidth` | Pulse bandwidth | Hz | `20e6` |211| `PeakPower` | Peak transmit power | W | `15e6` |212| `pulsewidth` | Pulse duration | s | `1e-3` |213| `prf` | Pulse repetition frequency | Hz | `1000` |214| `CarrierWaveInput` | Input type for carrier wave | enum | `'Frequency'` or `'Wavelength'` |215| `PowerInput` | Input type for power | enum | `'PeakPower'` or `'AveragePower'` |216| `PulseDurationInput` | Input type for duration | enum | `'PulseWidth'` or `'DutyCycle'` |217| `PulseRepetitionInput` | Input type for PRF | enum | `'PRF'` or `'PRI'` |218219#### Noise220| Property | Description | Units | Example |221|----------|-------------|-------|---------|222| `SystemNoiseInput` | Noise input type | enum | `'Temperature'` or `'Figure'` |223| `NoiseTemperature` | System noise temperature | K | `290` |224| `referenceNoiseTemperature` | Reference noise temp | K | `290` |225| `QuantizationNoise` | Enable quantization noise | logical | `true`/`false` |226| `QuantizationNumBits` | ADC bits | integer | `12` |227| `QuantizationDynamicRange` | ADC dynamic range | dB | `60` |228229#### Antenna230| Property | Description | Units | Example |231|----------|-------------|-------|---------|232| `AntennaHeight` | Antenna height above ground | m | `75` |233| `TiltAngle` | Antenna tilt angle | deg | `0` |234| `Polarization` | Antenna polarization | enum | `'H'`, `'V'`, `'Circular'` |235| `TxGain` | Transmit antenna gain | dBi | `40` |236| `TxAzBeamwidth` | Tx azimuth beamwidth | deg | `2` |237| `TxElBeamwidth` | Tx elevation beamwidth | deg | `2` |238| `DifferentRx` | Use different Rx antenna | logical | `false` |239| `RxGain` | Receive antenna gain | dBi | `40` |240| `RxAzBeamwidth` | Rx azimuth beamwidth | deg | `2` |241| `RxElBeamwidth` | Rx elevation beamwidth | deg | `2` |242| `TxGainInput` | Tx gain input mode | enum | `'FromAntennaPattern'` or `'SincPattern'` |243| `RxGainInput` | Rx gain input mode | enum | `'FromAntennaPattern'` or `'SincPattern'` |244| `TxSincInput` | Tx sinc pattern option | enum | `'Sinc'` or `'Gaussian'` |245246#### Scanning247| Property | Description | Units | Example |248|----------|-------------|-------|---------|249| `Scanning` | Scan type | enum | `'None'`, `'Mechanical'`, `'Electronic'` |250| `AzScanSectorMech` | Mechanical az scan sector | deg | `360` |251| `AzScanSectorElec` | Electronic az scan sector | deg | `120` |252| `ElScanStart` | Elevation scan start | deg | `0` |253| `ElScanStop` | Elevation scan stop | deg | `30` |254255#### Detection256| Property | Description | Units | Example |257|----------|-------------|-------|---------|258| `Pfa` | Probability of false alarm | probability | `1e-6` |259| `NumPulses` | Number of pulses integrated | integer | `10` |260| `PulseIntegration` | Integration type | enum | `'Coherent'`, `'Noncoherent'` |261| `NumCPIs` | Number of CPIs | integer | `1` |262| `BinaryIntegration` | Enable binary integration | logical | `false` |263| `NumBinaryDetections` | Binary detection threshold | integer | depends |264| `MofNCPIIntegration` | Enable M-of-N CPI integration | logical | `false` |265| `MNumCPIs` | M threshold for M-of-N | integer | depends |266267#### Track Confirmation268| Property | Description | Units | Example |269|----------|-------------|-------|---------|270| `ConfirmationThreshM` | M for M/N confirmation | integer | `3` |271| `ConfirmationThreshN` | N for M/N confirmation | integer | `5` |272| `TrackUpdateInput` | Track update input type | enum | `'TrackUpdateRate'` or `'TrackUpdateTime'` |273| `TrackUpdateTime` | Track update time | s | `1` |274275#### Signal Processing276| Property | Description | Units | Example |277|----------|-------------|-------|---------|278| `STC` | Enable STC | logical | `false` |279| `STCCutOffRange` | STC cutoff range | m | `50000` |280| `STCExponent` | STC exponent | scalar | `4` |281| `CFAR` | Enable CFAR | logical | `false` |282| `CFARNumCells` | CFAR reference cells | integer | `20` |283| `CFARMethod` | CFAR method | enum | `'CA'`, `'OS'`, `'GO'`, `'SO'` |284| `MTI` | Enable MTI filter | logical | `false` |285| `MTICanceller` | MTI canceller order | integer | `2` |286| `MTINullVelocity` | MTI null velocity | m/s | `0` |287| `MTIMethod` | MTI method | enum | depends |288| `Eclipsing` | Enable eclipsing loss | logical | `false` |289| `CustomLoss` | Additional custom loss | dB | `0` |290291### Target Properties292293> **Do not use `'Height'` as a property name.** The property is `TargetHeight`, not `Height`. The value `'Height'` is an enum value for `TargetPositionInputType`, not a settable property.294295| Property | Description | Units | Example |296|----------|-------------|-------|---------|297| `RCS` | Radar cross section | m² | `1` |298| `SwerlingModel` | Swerling fluctuation model | enum | `'Swerling0'`...`'Swerling4'` |299| `TargetPositionInputType` | Input type | enum | `'Height'` or `'Elevation'` |300| `TargetHeight` | Target height/altitude | m | `10000` |301| `TargetElevation` | Target elevation angle | deg | `5` |302| `MaxAcceleration` | Max target acceleration | m/s² | `50` |303| `Name` | Target name | string | `'Target 1'` |304305### Environment Properties306| Property | Description | Units | Example |307|----------|-------------|-------|---------|308| `FreeSpace` | Free space propagation | logical | `true` |309| `AtmosphericGasLoss` | Gas absorption enabled | logical | `true` |310| `LensLoss` | Lens effect enabled | logical | `true` |311| `PropagationFactor` | Propagation factor model | logical | `true` |312| `EarthModel` | Earth model type | enum | `'Flat'`, `'Curved'` |313| `SurfaceType` | Surface type | enum | `'Sea'`, `'Land'`, `'Custom'` |314| `RainRate` | Rain rate | mm/hr | `4` |315| `PrecipitationType` | Precipitation type | enum | `'Rain'`, `'Snow'`, `'Fog'`, `'Cloud'` |316| `SeaStateNumber` | Sea state (0-7) | integer | `3` |317| `LandType` | Land type | enum | depends |318| `VegetationType` | Vegetation type | enum | depends |319| `EffectiveEarthRadius` | Effective earth radius | m | `8500000` |320| `Name` | Environment name | string | `'Environment 1'` |321322### Requirement Specifications323324| Index | Name | Description |325|-------|------|-------------|326| 1 | `MaxRangePd` | Max range at detection probability |327| 2 | `MaxRange` | Maximum detection range |328| 3 | `MDS` | Minimum detectable signal |329| 4 | `MinRange` | Minimum range |330| 5 | `UnambiguousRange` | Unambiguous range |331| 6 | `RangeResolution` | Range resolution |332| 7 | `FirstBlindSpeed` | First blind speed |333| 8 | `RangeRateResolution` | Range-rate resolution |334| 9 | `RangeAccuracy` | Range accuracy |335| 10 | `AzimuthAccuracy` | Azimuth accuracy |336| 11 | `ElevationAccuracy` | Elevation accuracy |337| 12 | `RangeRateAccuracy` | Range-rate accuracy |338| 13 | `PtrueTrack` | True track probability |339| 14 | `PfalseTrack` | False track probability |340| 15 | `EIRP` | EIRP |341| 16 | `PowerAperture` | Power-aperture product |342343Each requirement has: `Objective`, `Threshold`.344345---346347## Presenting Results348349Always present results to the user in the following structured format:350351### 1. Summary Table352353Use Unicode box-drawing characters to render a clean table.354355**Single radar:**356357```358┌───────────────────────┬────────────┬────────┐359│ Metric │ Value │ Status │360├───────────────────────┼────────────┼────────┤361│ Max Range │ 315.1 km │ PASS │362├───────────────────────┼────────────┼────────┤363│ Range Resolution │ 7.5 m │ PASS │364├───────────────────────┼────────────┼────────┤365│ First Blind Speed │ 53.5 m/s │ WARN │366└───────────────────────┴────────────┴────────┘367```368369**Multi-radar comparison:**370371```372┌───────────────────────┬────────────┬────────────┬─────────┐373│ Metric │ Radar A │ Radar B │ Winner │374├───────────────────────┼────────────┼────────────┼─────────┤375│ Max Range │ 315.1 km │ 222.6 km │ Radar A │376├───────────────────────┼────────────┼────────────┼─────────┤377│ First Blind Speed │ 53.5 m/s │ 26.8 m/s │ Radar A │378└───────────────────────┴────────────┴────────────┴─────────┘379```380381**Table rules:**382- Show only metrics that are relevant to the user's question or that differ meaningfully between radars (not all 16 by default)383- If the user asks for a "full report", show all 16 metrics384- Include display units in the value cells (km, m/s, dBW, etc.)385- Use the Status column values directly from the results table (PASS/WARN/FAIL)386387### 2. Key Takeaways388389After the table, provide 2-4 bullet points covering:390- The most significant performance tradeoffs391- Any surprising results or requirement failures392- What factor is limiting performance (e.g., rain loss, duty cycle, antenna gain)393- Impact of the user's parameter change (if they modified something)394395### 3. Verdict396397End with a 1-2 sentence summary or recommendation.398399---400401## Conventions4024031. **UI Auto-Updates**: All parameter changes fire events that update the web UI automatically — no manual refresh needed.4044052. **Handle Persistence**: The variable `h` must persist in the MATLAB base workspace between calls. Each `evaluate_matlab_code` call shares the same workspace, so `h` remains available.4064073. **Startup Timing**: The app takes 5-10 seconds to initialize. `radarDesignerSession('launch')` handles the wait automatically.4084094. **Always Use project_path**: When calling `mcp__matlab__evaluate_matlab_code`, set `project_path` to the skill's root directory so the wrapper scripts in `scripts/` are on the MATLAB path.4104115. **Property Names Are Case-Sensitive**: Use exact names from the property reference tables above.4124136. **Range Auto-Tuning Is Mandatory**: When the user specifies a target range, ALWAYS run `radarDesignerResults(h, 'autoTune', range_m)` BEFORE reading results. Never report a design that overshoots or undershoots the user's requested range by more than 30%.4144157. **Always Report Pass/Fail**: When presenting results, always include the Status (PASS/WARN/FAIL) for each metric and explicitly call out which requirements are not met.4164178. **SI Units**: All parameter values must be in SI units — frequency in Hz (not GHz), power in W (not MW), range in m (not km).4184199. **Always Consult code-reference.md**: Before writing code for multi-radar comparison, session management, export, or before/after analysis, load and follow the patterns in [code-reference.md](references/code-reference.md).420421----422423Copyright 2026 The MathWorks, Inc.424425----