Borrar filtros
Borrar filtros

How to show value tends to infinity in plot

9 visualizaciones (últimos 30 días)
Chinmayraj Doddarajappa
Chinmayraj Doddarajappa el 1 de Sept. de 2022
Comentada: Star Strider el 1 de Sept. de 2022
Hello Experts,
Can anyone tell me how to write (x --> inf) 'x tends to infinity in the legend of a graph?
Thank you

Respuesta aceptada

Star Strider
Star Strider el 1 de Sept. de 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 comentarios
Chinmayraj Doddarajappa
Chinmayraj Doddarajappa el 1 de Sept. de 2022
Thank you
Star Strider
Star Strider el 1 de Sept. de 2022
As always, my pleasure!

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Productos


Versión

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by