画图时显示灰色虚线是什么意思?。

画曲线时出现灰色虚线是什么意思?例子如下
syms x
y=(besseli(0,x)-1)/besseli(1,x);
figure
fplot(y,[1,10000])
运行结果如下, 指定横坐标绘制范围【1,10000】,图线未至1000就不画了,而且还在右侧出现灰色竖直虚线。如果选中灰色虚线,会连带着曲线一同选中。
请问怎样才能不显示灰色虚线,画出完整的曲线?
谢谢~~

 Respuesta aceptada

fsilvaci
fsilvaci el 16 de Mayo de 2023

0 votos

你的x数值很大时,matlab的besseli函数算不了那么高的精度,导致结果数值成了inf,分子分母都是inf,这种不定式会被算成NaN,是没法绘图的。
要么缩减绘图范围,要么换用其他软件如mathematica等计算。

Más respuestas (0)

Categorías

Más información sobre 数学 en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 16 de Mayo de 2023

Respondida:

el 16 de Mayo de 2023

Community Treasure Hunt

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

Start Hunting!