How to show value tends to infinity in plot

18 次查看(过去 30 天)
Hello Experts,
Can anyone tell me how to write (x --> inf) 'x tends to infinity in the legend of a graph?
Thank you

采纳的回答

Star Strider
Star Strider 2022-9-1
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')
.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Annotations 的更多信息

标签

产品


版本

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by