Help me plot grafic pls.
4 views (last 30 days)
William Rose on 22 Nov 2022
Yoiur foumula includes an infinite sum. Do a finite sum and see if it converges after 10 or 20 or 30 terms. When I do it, I see that the solution with n=20 is almost identical to the solution with n=10, and the solution with n=30 is not visibly differnt from the solution with n=20.
All three solutions look very different from the plot you posted. Perhaps I made a msitake. Check my work. Are you sure the plot you provided is a plot of the analytical solution using the equation shown? Why does R=1.04 appear in the plot, but not in the analytical solution?
t=0:.0026:0.0702; %time vector
u1=zeros(size(t)); u2=u1; u3=u1; %allocate u
legend('n=10','n=20','n=30'); grid on; xlabel('Time'); ylabel('u')