Azzera filtri
Azzera filtri

Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

How to add a reference horizontal line to an existing plot

1 visualizzazione (ultimi 30 giorni)
I want to add a reference horizontal line at about -86 db in my plot.How can I do it

Risposta accettata

TRISHITA BANERJEE
TRISHITA BANERJEE il 11 Giu 2018
hline = refline([0 -80]); % highlight reference thersold at -80 DB
hline.Color = 'r';

Più risposte (1)

KSSV
KSSV il 11 Giu 2018
Check the below demo code:
x = linspace(0,2*pi) ;
y = sin(x) ;
plot(x,y)
% reference line at x = 0.6
xi = linspace(min(x),max(x)) ;
yi = 0.6*ones(size(xi)) ;
hold on
plot(xi,yi) ;

Questa domanda è chiusa.

Community Treasure Hunt

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

Start Hunting!

Translated by