Converting NodalSolution to Matrix
조회 수: 6 (최근 30일)
이전 댓글 표시
I have solved a PDE (2 spatial dimensions + time) using the PDE Toolbox. I would like to do plots where I hold one spatial dimension fixed and plot the solution over the remaining spatial dimension and time. It would be trivial to do this if my solution was in the form of a matrix with axes (x,y,t), but it's not clear how to convert the NodalSolution object returned by the PDE solver into such a matrix. Is this possible? If not, is there a simple way to get the kind of plot I mentioned using this object directly?
Thanks!
댓글 수: 0
답변 (1개)
Shraddha Jain
2021년 3월 3일
Hi Dylan,
result = solvepde(model,tlist)
the output result is an object. The nodal solution in matrix format can be accessed as,
u = results.NodalSolution;
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 General PDEs에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!