T1=80; a=5; b=4;for n=1:5 for x=1:5 y=1:4; T(x,y)=(4*T1/pi)*(sin((2*n-1)*(pi*x/a))/(2*n-1)*sinh((2*n-1)*(pi*y)/a)/sinh((2*n-1)*(pi*b)/a)); endend
MATLAB: How to store all the T values from this nested loop
for loop
for loop
T1=80; a=5; b=4;for n=1:5 for x=1:5 y=1:4; T(x,y)=(4*T1/pi)*(sin((2*n-1)*(pi*x/a))/(2*n-1)*sinh((2*n-1)*(pi*y)/a)/sinh((2*n-1)*(pi*b)/a)); endend
Best Answer