Alternative command to interpolateSolution on manipulated results item

2 次查看(过去 30 天)
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.

Community Treasure Hunt

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

Start Hunting!

Translated by