MATLAB Answers

How to use pdeplot in appdesigner?

4 views (last 30 days)
Andrew Ferguson
Andrew Ferguson on 25 Feb 2021
Edited: Megumi Fukuda on 23 Aug 2021
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:
pdeplot(model2,'XYData',sol2(:,3600))
Could anyone help me with this?

Answers (2)

Rashed Mohammed
Rashed Mohammed on 5 Mar 2021
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

Megumi Fukuda
Megumi Fukuda on 23 Aug 2021
Edited: Megumi Fukuda on 23 Aug 2021
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);

Categories

Tags

Community Treasure Hunt

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

Start Hunting!