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)
Mostra commenti meno recenti
TRISHITA BANERJEE
il 11 Giu 2018
Chiuso: TRISHITA BANERJEE
il 13 Giu 2018
I want to add a reference horizontal line at about -86 db in my plot.How can I do it
0 Commenti
Risposta accettata
Più risposte (1)
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) ;
0 Commenti
Questa domanda è chiusa.
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!