Plot temperature variations using colored contours similar to 'surf' option for 3D object.

2 views (last 30 days)
I have a finite difference mesh of a 3D object having approximately 2000 nodes. I also have temperature variation data at different time steps for each node after simulation. What command should I use to plot this temperature variation for that 3D object as well as the animation of temperature variation in the object from 0-10 time steps?
Is the problem understandable?
Please Help.

Answers (1)

darova
darova on 20 Aug 2019
Simple example for edges
clc,clear
x = [1 2 1];
y = [1 1 0];
c = rand(3,10); % 10 colors for each node
% make more colors
[cx,cy] = meshgrid(1:10,1:3);
[cx1,cy1] = meshgrid(1:0.1:10, 1:3);
c1 = interp2(cx,cy,c,cx1,cy1);
axis([0.5 2.5 -0.5 1.5])
figure(1)
cla
hold on
for i = 1:size(c1,2)
h = patch(x,y,c1(:,i));
set(h,'FaceCOlor','none')
set(h,'EdgeCOlor','interp')
set(h,'linewidth', 2)
pause(0.1)
delete(h);
end
hold off

Categories

Find more on Migrate GUIDE Apps 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!