필터 지우기
필터 지우기

How can I plot this equation in matlab?

조회 수: 1 (최근 30일)
harsh patel
harsh patel 2016년 10월 15일
답변: Pritesh Shah 2016년 10월 15일
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.

답변 (1개)

Pritesh Shah
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

카테고리

Help CenterFile Exchange에서 Directed Graphs에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by