how to find the function "helper plot fluctuation loss" to plot this image in matlab help?

5 visualizzazioni (ultimi 30 giorni)
how to find the function "helper plot fluctuation loss" to plot this image in matlab help?
% Detection probabilityPd = linspace(0.01,0.995,100);
% Probability of false alarmPfa = [1e-8 1e-4];
% Number of received pulsesn = [1 10 50];
% Fluctuation loss for Swerling 1 caseL1f = zeros(numel(Pd),numel(Pfa),numel(n));
% Fluctuation loss for Swerling 2 caseL2f = zeros(numel(Pd),numel(Pfa),numel(n));
for i = 1:numel(n) % Detectability factor for a steady target D0n = detectability(Pd,Pfa,n(i),'Swerling0');
% Detectability factor for Swerling 1 case fluctuating target D1n = detectability(Pd,Pfa,n(i),'Swerling1');
% Detectability factor for Swerling 2 case fluctuating target D2n = detectability(Pd,Pfa,n(i),'Swerling2');
L1f(:,:,i) = D1n-D0n; L2f(:,:,i) = D2n-D0n;end
figureax1 = subplot(1,2,1);helperPlotFluctuationLoss(ax1,Pd,L1f)
title(ax1,{'Fluctuation Loss','Swerling 1 Case'});labels = helperLegendLabels('N=%d','P_{fa}=%.0e',n,Pfa);legend(labels)
ax2 = subplot(1,2,2);helperPlotFluctuationLoss(ax2,Pd,L2f)
title(ax2,{'Fluctuation Loss','Swerling 2 Case'})legend(labels)
set(gcf,'Position',[100 100 800 600])

Risposta accettata

Walter Roberson
Walter Roberson il 29 Dic 2024
When you
openExample('radar/IntegrationAndFluctuationLossesExample')
it will set up a directory for you and cd to that directory. That directory contains helperPlotFluctuationLoss.m and helperLegendLabels.m

Più risposte (0)

Categorie

Scopri di più su Image Processing Toolbox in Help Center e File Exchange

Prodotti


Release

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by