![]() |
两个函数相乘为什么结果是NaN啊??求助
[t,h]= meshgrid(0.0001:0.0001:0.0008,0.005:0.005:1);
x1=exp(1250*h).*erfc(0.5*(h+1250*t)./sqrt(t)); 结果显示X1中一半是NaN~~为啥呢。是因为exp(1250*h)超出了double的范围吗? 如果是,那matlab有没有更大容量的数据类型呢? 求各位大侠指点!! |
回复: 两个函数相乘为什么结果是NaN啊??求助
哪位好心人深深援手啊~
;) |
回复: 两个函数相乘为什么结果是NaN啊??求助
通过findNaN的那行(114)和前一行(113)比较,的确是exp(1250*h)溢出了
[code]>> exp(1250*h(114,:)) ans = Inf Inf Inf Inf Inf Inf Inf Inf >> exp(1250*h(113,:)) ans = 1.0e+306 * 5.2539 5.2539 5.2539 5.2539 5.2539 5.2539 5.2539 5.2539 [/code] |
所有时间均为北京时间。现在的时间是 06:53。 |
Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.