Is there any way to pass a matrix (not an array) from sol1 as the IC-2 for finding sol2

조회 수: 2 (최근 30일)

채택된 답변

Rhea Chandy
Rhea Chandy 2021년 5월 5일
Hello,
You can take a look at this documentation: Solve 1-D parabolic and elliptic PDEs for a little more information on what you're looking for.
This seems like a homework question, if you can provide the code you've written to solve the problem and ask a specific question about where you're facing difficulty, we may be able to provide some guidance.
  댓글 수: 1
Hashim
Hashim 2021년 5월 5일
Thank you for your comment Rhea. I was looking for a way to pass the final concentration from sol1 (the whole vector) as the intial condition for sol2. I was able to do that via the command given below and so far the answer is making sense. Also, this is not a homework problem rather my project as a postgrad student. I'll be posting further questions regarding this.
interp1(xmesh, c1(N,:), x)
Thanks!

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

추가 답변 (0개)

카테고리

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

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by