How to use pdeplot with appdesigner?
Afficher commentaires plus anciens
Hello,
I try to display a gradient contour from a thermal pde solution.
pdeplot(app.data.thermalModelT,'XYData',app.data.temperature(:,end),'Contour','on');
as expected it displays a new figure. Thus I tried
pdeplot(app.UIAxes, app.data.thermalModelT,'XYData',app.data.temperature(:,end),'Contour','on');
like I would do for normal plot. But that is not supported. Is there a solution?
Thanks,
1 commentaire
Mohammad reza Nejati
le 4 Mar 2020
I have the same problem. could anyone help please ?
Réponses (2)
Ruben Gavín Mulelro
le 29 Mai 2021
1 vote
Same problem.. Have you found any solution?
Angelo Hafner
le 14 Juil 2019
Today I was working all day looking for an answer. It folows my code...
nt = 21;
r = linspace(r1,r2,nt);
th = linspace(0,2*pi,nt);
[R,TH] = meshgrid(r,th);
% polar to cartezian (may be not necessary in your case
X = R .* cos(TH);
Y = R .* sin(TH);
The important thing here is to do the meshgrid
querypoints = [X(:),Y(:)]';
uintrp = interpolateSolution(results,querypoints);
and here is reshape
uintrp = reshape(uintrp,size(X));
mesh(X,Y,uintrp)
1 commentaire
Mohammad reza Nejati
le 4 Mar 2020
your answer is totally irrelevant !
Catégories
En savoir plus sur PDE Solvers dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!