Azzera filtri
Azzera filtri

How to show value tends to infinity in plot

9 visualizzazioni (ultimi 30 giorni)
Hello Experts,
Can anyone tell me how to write (x --> inf) 'x tends to infinity in the legend of a graph?
Thank you

Risposta accettata

Star Strider
Star Strider il 1 Set 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 Commenti

Accedi per commentare.

Più risposte (0)

Tag

Prodotti


Release

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by