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

4 vues (au cours des 30 derniers jours)
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])

Réponse acceptée

Walter Roberson
Walter Roberson le 29 Déc 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

Plus de réponses (0)

Catégories

En savoir plus sur Image Processing Toolbox dans Help Center et File Exchange

Produits


Version

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by