欢迎访问 生活随笔!

尊龙游戏旗舰厅官网

当前位置: 尊龙游戏旗舰厅官网 > 人工智能 > 循环神经网络 >内容正文

循环神经网络

matlab无限循环怎么停下来,[求助] 关于matlab无限循环的问题 -尊龙游戏旗舰厅官网

发布时间:2024/10/8 循环神经网络 0 豆豆
尊龙游戏旗舰厅官网 收集整理的这篇文章主要介绍了 matlab无限循环怎么停下来,[求助] 关于matlab无限循环的问题 小编觉得挺不错的,现在分享给大家,帮大家做个参考.

该楼层疑似违规已被系统折叠 隐藏此楼查看此楼

各路大神,求助啊啊啊啊~

以下是我的代码:

n=0

for i=1:length(naxles)

if code(i)==0

n=n 1

gvm1(n)=gvm(i)

gc(n)=(a2_mass(i)* a1_space(i) a3_mass(i)* a2_space(i) a4_mass(i)* a3_space(i) a5_mass(i)* a4_space(i) a6_mass(i)* a5_space(i) a7_mass(i)* a6_space(i) a8_mass(i)* a7_space(i) a9_mass(i)* a8_space(i) a10_mass(i)* a9_space(i))/( a1_mass(i) a2_mass(i) a3_mass(i) a4_mass(i) a5_mass(i) a6_mass(i) a7_mass(i) a8_mass(i) a9_mass(i) a10_mass(i))

x(n)= abs(a1_mass(i)* gc(n)) abs(a2_mass(i)* (gc(n)- a1_space(i))) abs(a3_mass(i)* (gc(n)- a1_space(i)- a2_space(i))) abs(a4_mass(i)* (gc(n)- a1_space(i)- a2_space(i)- a3_space(i))) abs(a5_mass(i)* (gc(n)- a1_space(i)- a2_space(i)-a3_space(i) - a4_space(i))) abs(a6_mass(i)* (gc(n)- a1_space(i)- a2_space(i)- a3_space(i) - a4_space(i)- a5_space(i))) abs(a7_mass(i)* (gc(n)- a1_space(i)- a2_space(i)- a3_space(i) - a4_space(i)- a5_space(i)- a6_space(i))) abs(a8_mass(i)* (gc(n)- a1_space(i)- a2_space(i)- a3_space(i) - a4_space(i)- a5_space(i)- a6_space(i)- a7_space(i))) abs(a9_mass(i)* (gc(n)- a1_space(i)- a2_space(i)- a3_space(i) - a4_space(i)- a5_space(i)- a6_space(i)- a7_space(i)- a8_space(i))) abs(a10_mass(i)* (gc(n)- a1_space(i)- a2_space(i)- a3_space(i) - a4_space(i)- a5_space(i)- a6_space(i)- a7_space(i)- a8_space(i)- a9_space(i)))

y(n)= a1_mass(i)* gc(n) a2_mass(i)* (gc(n)- a1_space(i)) a3_mass(i)* (gc(n)- a1_space(i)- a2_space(i)) a4_mass(i)* (gc(n)- a1_space(i)- a2_space(i)- a3_space(i)) a5_mass(i)* (gc(n)- a1_space(i)- a2_space(i)-a3_space(i) - a4_space(i)) a6_mass(i)* (gc(n)- a1_space(i)- a2_space(i)- a3_space(i) - a4_space(i)- a5_space(i)) a7_mass(i)* (gc(n)- a1_space(i)- a2_space(i)- a3_space(i) - a4_space(i)- a5_space(i)- a6_space(i)) a8_mass(i)* (gc(n)- a1_space(i)- a2_space(i)- a3_space(i) - a4_space(i)- a5_space(i)- a6_space(i)- a7_space(i)) a9_mass(i)* (gc(n)- a1_space(i)- a2_space(i)- a3_space(i) - a4_space(i)- a5_space(i)- a6_space(i)- a7_space(i)- a8_space(i)) a10_mass(i)* (gc(n)- a1_space(i)- a2_space(i)- a3_space(i) - a4_space(i)- a5_space(i)- a6_space(i)- a7_space(i)- a8_space(i)- a9_space(i))

tl(n)= a1_space(i) a2_space(i) a3_space(i) a4_space(i) a5_space(i) a6_space(i) a7_space(i) a8_space(i) a9_space(i)

bm(n)=4/gvm(i)*x(n)-2*(naxles(i)-1)/( naxles(i)* gvm(i)* gvm(i)* tl(n))*y(n)* y(n)

end

end

p=polyfit(bm,gvm1,2)

xx=linspace(min(bm),max(bm))

yy=polyval(p,xx)

plot(bm,gvm1,'k ',xx,yy,'r')

做的是一个数据的计算并且对结果进行二次拟合,可是,我的电脑已经跑了一天了,还没有处理完所有的数据,楼主截图后发现,电脑内部处理的数据在前10万个数据内循环,就是不能继续读后面的数据。此代码楼主先用前100个数据试了一下,没有问题才开始跑的,但是数据一多就不对了。

楼主需要处理的数据同工有1亿多组,是数据溢出吗?可是楼主有用同样的数据源跑其他的代码,没有问题,而且结果出的特别快,大概1分钟不到吧。现在到底是个什么情况?跪求各位大神指点啊啊啊啊!

下面是楼主的截图:

总结

以上是尊龙游戏旗舰厅官网为你收集整理的matlab无限循环怎么停下来,[求助] 关于matlab无限循环的问题的全部内容,希望文章能够帮你解决所遇到的问题。

如果觉得尊龙游戏旗舰厅官网网站内容还不错,欢迎将尊龙游戏旗舰厅官网推荐给好友。

  • 上一篇:
  • 下一篇:
网站地图