how to get labeled contours plot when using a pdemodel ?

5 ビュー (過去 30 日間)
Hugo
Hugo 2021 年 2 月 10 日
編集済み: Hugo 2021 年 2 月 23 日
Is there a way to label contour plots using pdeplot or pdecont function ?
I know that the function contour has the 'Showtext' option, but i cannot manage a way to find a similar option or workaround to have labeled contour plots together with the solution of a pdemodel.
  2 件のコメント
darova
darova 2021 年 2 月 21 日
Did you try using contour3?
Hugo
Hugo 2021 年 2 月 23 日
編集済み: Hugo 2021 年 2 月 23 日
Thanks for the reply.
No i am not sure you can use contour3 after using pdeplot.
Finally, the workaround i found is to interpolate the solutions on a x-y grid, to be able to use the contour function, with the 'Showtext' option.
result = solvepde(model);
[xm ym]= meshgrid(x);
uxy = interpolateSolution(result,xm,ym);
uxy=reshape(uxy,size(xm));
[con hc] = contour(x,y,uxy,'ShowText','on');

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeGeometry and Mesh についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by