How do I create an animation with a coloured sphere changing in time? (for climate modelling)
Show older comments
Hello, I'm trying to do some simple climate modelling. I would like to create a short animation with my data (temperature means) represented on a sphere ( divided in different regions) with different colours evolving in time. What should I use?
2 Comments
KSSV
on 6 Apr 2017
What data you have?
Victor Couplet
on 6 Apr 2017
Edited: Victor Couplet
on 6 Apr 2017
Answers (1)
Joseph Cheng
on 6 Apr 2017
you can do something like this
[x,y,z] = sphere(30);
[sx sy]=meshgrid(-1:.01:1,-1:.01:1);
I=3*sin(2*pi*2*sx)+cos(2*pi*4*sy);
figure(1),clf
subplot(2,1,1),imagesc(I),colormap('hsv')
subplot(2,1,2),surf(x,y,z,'FaceColor','texturemap','EdgeColor','none','Cdata',I);
Categories
Find more on Climate Science and Analysis 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!