Extract data from pdeplot to use contourf
6 views (last 30 days)
Show older comments
Johnny Yoon on 1 Mar 2021
Commented: Johnny Yoon on 4 Mar 2021
I solved a pde and plotted the result with the code as follows. From the plotted figure, I would like to extract data to plot same or similar figure using contourf. Is there any way to do? Thank you very much in advance.
model = createpde();
R1 = [3,4,0,1,1,0,0,0,1,1]';
g = decsg(R1);
mesh = generateMesh(model,'Hmax',0.25);
results = solvepde(model);
Rashed Mohammed on 3 Mar 2021
If you need a contour plot of the PDE model, please use the Contour Name-Value pair while using the pdeplot function as follows
You can customize the plot using various Name-Value pairs present here.
Hope this helps.
Find more on Geometry and Mesh in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!