필터 지우기
필터 지우기

How to use pdeplot with appdesigner?

조회 수: 3 (최근 30일)
JClarcq
JClarcq 2018년 4월 5일
답변: Ruben Gavín Mulelro 2021년 5월 29일
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
Mohammad reza Nejati
Mohammad reza Nejati 2020년 3월 4일
I have the same problem. could anyone help please ?

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

답변 (2개)

Ruben Gavín Mulelro
Ruben Gavín Mulelro 2021년 5월 29일
Same problem.. Have you found any solution?

Angelo Hafner
Angelo Hafner 2019년 7월 14일
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
Mohammad reza Nejati
Mohammad reza Nejati 2020년 3월 4일
your answer is totally irrelevant !

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

카테고리

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