How to show value tends to infinity in plot
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Chinmayraj Doddarajappa
am 1 Sep. 2022
Kommentiert: Star Strider
am 1 Sep. 2022
Hello Experts,
Can anyone tell me how to write (x --> inf) 'x tends to infinity in the legend of a graph?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1113770/image.jpeg)
Thank you
Akzeptierte Antwort
Star Strider
am 1 Sep. 2022
Try simething like this —
x = linspace(0,10);
y = 1./(x-5);
figure
plot(x, y, 'DisplayName','$C_{\phi}$')
xline(5,'-r', 'DisplayName','$C_{\theta} \rightarrow \infty$')
legend('Location','best', 'Interpreter','latex')
.
3 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Annotations finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!