MATLAB Answers

How to add pdemesh model in axes ?

7 views (last 30 days)
Rojina Shrestha
Rojina Shrestha on 6 Oct 2020 at 12:19
% plot Mesh and intersect point
Basic = createpde;
Basic.geometryFromMesh(Parameters.Point2D.Points', Parameters.Point2D.ConnectivityList');
for k = 1:Initial.revolutions
N_ID(k,1) = findNodes(Basic.Mesh,'nearest',[Parameters.EndPointRadius(1,k);Parameters.EndPointRadius(2,k)]);
En(k,:) = findElements(Basic.Mesh,'radius',[Parameters.EndPointRadius(1,k) Parameters.EndPointRadius(2,k)],Initial.meshSize);
end
figure
pdegplot(ThermalModel,'EdgeLabels','on')
pdemesh(ThermalModel)
hold on
plot(Basic.Mesh.Nodes(1,N_ID),Basic.Mesh.Nodes(2,N_ID),'ok','MarkerFaceColor','g')
pdemesh(Basic.Mesh.Nodes,Basic.Mesh.Elements(:,En),'EdgeColor','blue')
title('Mesh with Triangular Elements')
Here is how I created pdemesh , but it comes in another window. I want to show it in main panel

  0 Comments

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!