码迷,mamicode.com
首页 > 其他好文 > 详细

matlab计算

时间:2020-04-21 18:30:23      阅读:44      评论:0      收藏:0      [点我收藏+]

标签:while   div   span   atl   计算   style   mat   end   matlab   

1、

a=1000;
b=3;
s1=1.0;
s2=10000000;
while abs(s2-s1)>0.000001
    s1=s2;
    s2=a/(b+s1);
    s1,s2
end

 

matlab计算

标签:while   div   span   atl   计算   style   mat   end   matlab   

原文地址:https://www.cnblogs.com/wjjcjj/p/12746114.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!