Hi,
Here is the question;
and I want to calculate plot x-t-F graph for first 100 terms of n.
Sum=0;for t=1:20for x=1:20 for n=1:100 Sum=Sum+(30/pi)*(1/n)*(exp(-(n^2)*(pi^2)*1.14*t/3600))*(1-cos(n*pi/2))*(sin(n*pi*x/60));endend;sum(t)=Sum;end;
Here is my code. I am quite new in matlab and I wanted to do it with for loops. I want to ask that is there any way to take the values of x and t randomly between intervals and find the F function for each time and plot them?
Thank you!
Best Answer