مشكور ولكني ما فهمت الكود الي فالملف المرفق مالمقصود منة ؟ وبخصوص المشاركة رقم 3 عندما عرفت
Syms W H لم تعطيهم قيمة صح ؟ انا هذا كودي
x=input(‘Enter the value of x=’)
y=input(‘Enter the value of y=’)
w=input(‘Enter the value of w=’)
h=input(‘Enter the value of h=’)
if((x>w) & (y>h))
msgbox(‘x cannot exceed the value of w’)
msgbox(‘y cannot exceed the value of h’)
return
else
Calc = 0;
nTerms = 4; % or 5 or 6 or …
for iTerm = 1 : nTerms
TempCalc = (2/pi)((((-1)^(iTerm+1))+1)/iTerm)sin((iTermpix)/w)(sinh(iTermpiy/w))/(sinh(iTermpi*h/w))
Calc = Calc + TempCalc
end
end;