How can I plot this equation in matlab?
3 ビュー (過去 30 日間)
古いコメントを表示
u(x,t)=2/π ∑_(n=1)^∞[((2-2 cos(nπ)-πnsin(nπ))/n^3)*e^(-n^2 t)*sin(nx)] For n = 1 to 20, x = 0 to pi and t= 0 to 3. Also I need to plot 2D graph for this same equation for u versus x and u versus t.
0 件のコメント
回答 (1 件)
Pritesh Shah
2016 年 10 月 15 日
USe for loop for n. X and t can be vector.
t=0:0.01:3;
x=0:(pi/100):pi;
for n=1:20
end
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Thermal Analysis についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!