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

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

 Réponse acceptée

fsilvaci
fsilvaci le 16 Mai 2023

0 votes

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

Plus de réponses (0)

Catégories

En savoir plus sur 数学 dans Centre d'aide et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!