# Solving Multi-variable Partial Differential Equation

조회 수: 1 (최근 30일)
Captain Rituraj Singh . 2023년 10월 3일
댓글: Captain Rituraj Singh . 2023년 10월 5일
boundary conditions;
Please help me to solve above differential eqation. I want P = P(x,y) and also generate a 3D plot for the same.
I am a new to MATLAB, any help shall be highly appreciated.

댓글을 달려면 로그인하십시오.

### 채택된 답변

Torsten 2023년 10월 3일
편집: Torsten 님. 2023년 10월 3일
The only thing you can get with the "boundary condition" you gave is the solution on the characteristic curve of the PDE through (x0,y0).
Look up "method of characteristics" for more details.
And I don't understand why you write
I am a new to MATLAB, any help shall be highly appreciated.
It's not a MATLAB problem.
##### 댓글 수: 6이전 댓글 4개 표시이전 댓글 4개 숨기기
Torsten 2023년 10월 4일
편집: Torsten 님. 2023년 10월 4일
fun = @(t,u)[cosh(u(2));-sinh(u(2))/u(1);-u(3)/(3*u(1))];
u0 = [0.1;0.1;0.5];
tstart = -10;
tend = 10;
tspan1 = [0 tstart];
[T1,U1] = ode45(fun,tspan1,u0);
tspan2 = [0 tend];
[T2,U2] = ode45(fun,tspan2,u0);
T = [flipud(T1);T2(2:end)];
U = [flipud(U1);U2(2:end,:)];
plot3(U(:,1),U(:,2),U(:,3))
xlabel('x')
ylabel('y')
zlabel('P')
Captain Rituraj Singh 2023년 10월 5일
Thank you so much @Torsten, provided solution was very helpful.

댓글을 달려면 로그인하십시오.

### 카테고리

Help CenterFile Exchange에서 Eigenvalue Problems에 대해 자세히 알아보기

R2021a

### Community Treasure Hunt

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

Start Hunting!

Translated by