Alternative command to interpolateSolution on manipulated results item

조회 수: 7 (최근 30일)
MG
MG 2017년 9월 26일
답변: MG 2017년 9월 27일
Hello,
I'm trying to use the command interpolateSolution onto a matrix calculated by the results of a PDE analysis.
The correct workflow uses 'results' in the interpolateSolution command, where results = pdesolve(model, time). In my case, I have manipulated the solution matrix with some calculations and thus I cannot use the new matrix as interpolateSolution entry.
Is there an alternative command to do the same action?
In particular, I need to interpolate my results over a structured meshgrid and reduce the node number.
Thank you in advance, bests

채택된 답변

Svetlana Pease
Svetlana Pease 2017년 9월 26일
You can try using the createPDEResults function.
Regards,
Svetlana Pease
Technical writer, MathWorks documentation group

추가 답변 (1개)

MG
MG 2017년 9월 27일
Hello Svetlana,
thank you for the kind reply.
Unfortunately, this function doesn't work in my case because I have transformed my 2D results matrix in a 3D matrix multiplying results by a vector. Also squeezing the 3D matrix I am not able to use the createPDEresults function.
Probably the better is to repeat the calculation eliminating the vector giving the third matrix dimension.
Thank you.

카테고리

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