How to use pdeplot in appdesigner?

조회 수: 12(최근 30일)
Andrew Ferguson
Andrew Ferguson 2021년 2월 25일
댓글: Pelajar UM 2022년 2월 28일
I'm trying to display a pdeplot graph in appdesigner, but I have no idea how to get it do display using app.UIAxes. Right now my pdeplot code is:
Could anyone help me with this?


Megumi Fukuda
Megumi Fukuda 2021년 8월 23일
편집: Megumi Fukuda 2021년 8월 23일
A possible option is using pdeviz
Use "pdeviz(figure,___)" syntax to specify plot area in the app designer. The code should be something like this:
% you need to have yourmeshdata
v = pdeviz(app.RightPanel, yourmeshdata); %specify where to plot the data
v.NodalData = sol2(:,3600);
  댓글 수: 1
Pelajar UM
Pelajar UM 2022년 2월 28일
@Megumi Fukuda Thanks but how can I use pdeviz with a mesh that is generated elsewhere?
With pdemesh, this is straightforward:
nodes = app.UITable2.Data;
elements = app.UITable.Data;
pdeviz on the other hand doesn't seem to allow you to do this....
pde.FEMesh.Nodes = app.UITable2.Data';
pde.FEMesh.Elements = app.UITable.Data';
I keep getting "Unable to find a mesh".

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

Rashed Mohammed
Rashed Mohammed 2021년 3월 5일
Hi Andrew
As of R2020b, pdeplot does not support taking axes objects as input parameter which is the case with other plot functions. I have brought this issue to the concerned people and it might be considered in any future release.
Hope this helps


Community Treasure Hunt

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

Start Hunting!

Translated by