Is there a way to display a pdeplot3d in a subplot?

8 views (last 30 days)
Christian_T on 9 Jul 2020
Commented: Christian_T on 31 Jul 2020
Hi everyone,
I have used the pde toolbox to calculate the displacements and stresses for a rotor and now I want to save them to a user interface so that I can load the data again and again. Is it possible to display a pdeplot3d in any way in a subplot or is it not so easy with the created model and colorbar?
I am thankful for every feedback, idea.
Kind regards

Answers (1)

Devineni Aslesha
Devineni Aslesha on 22 Jul 2020
Hi Christian_T
You can display a pdeplot3d in a subplot like other 3d plots. I am using example code available in pdeplot3d documentation page to show how you display pdeplot3d in subplot.
model = createpde;
results = solvepde(model)
After running the above code, try the below commands in MATLAB Command window
u = results.NodalSolution;
  1 Comment
Christian_T on 31 Jul 2020
Dear Devineni,
Thank you for your reply. I tried your way. However, Matlab does not recognize "color property" with "subplot". If I load my data back into Matlab and then call it with the commands
pdeplot3D(model, 'ColorMap',results);
he creates the 3D plot for me. Only when I try to call it with the command Subplot, I get the error message "There is no color property on the panel class".
Is this related to the fact that I can save the data in a GUI, but Matlab can't access it with the Subplot command? How can I change it?

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!