المهندسين العرب

المهندسين العرب (http://www.mohandsen.net/vb/index.php)
-   قسم لغات البرمجه (http://www.mohandsen.net/vb/forumdisplay.php?f=335)
-   -   matlab (http://www.mohandsen.net/vb/showthread.php?t=609328)

moh.soliman 26/2/2013 01:39 PM

matlab
 
قمت بعمل الكود التالي وقيمة المتغير y لا تتغير ولا اعرف ما المشكلة ؟؟؟؟
t=520;

>> n=2;

>> r=5;

>> p=1000;

>> x=n*r*t/p;
a=1; , b=2;
>> y=n*r*t/(p+a*n^2/x^2))+n*b;
while abs(x-y)<= 0.001
x=y;
y=n*r*t/((p+a*n^2/x^2))+n*b;
end


الساعة الآن 11:20 PM

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd. TranZ By Almuhajir