How to show value tends to infinity in plot

 Accepted Answer

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 Comments

Maybe
xline(5,'-r', 'DisplayName','$C_{\theta} {( x } \rightarrow \infty{ )}$')
instead of
xline(5,'-r', 'DisplayName','$C_{\theta} \rightarrow \infty$')
As always, my pleasure!

Sign in to comment.

More Answers (0)

Categories

Products

Release

R2021b

Tags

Community Treasure Hunt

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

Start Hunting!