Filter löschen
Filter löschen

Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

How to add a reference horizontal line to an existing plot

1 Ansicht (letzte 30 Tage)
TRISHITA BANERJEE
TRISHITA BANERJEE am 11 Jun. 2018
Geschlossen: TRISHITA BANERJEE am 13 Jun. 2018
I want to add a reference horizontal line at about -86 db in my plot.How can I do it

Akzeptierte Antwort

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

Weitere Antworten (1)

KSSV
KSSV am 11 Jun. 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) ;

Diese Frage ist geschlossen.

Community Treasure Hunt

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

Start Hunting!

Translated by