3d animation of a slice plot
Mostra commenti meno recenti
Thanks in advance,
I am trying to create a 3d slice plot animation that changes each slice as the movie progresses. My code is as follows:
figure
slice(arrayD,1,1,1);
shading interp;
set(gcf,'NextPlot','replacechildren')
numframes=6;
A=moviein(numframes);
for i=1:numframes
slice(arrayD,i*21,131*i,i*13);
shading interp;
A(i)=getframe;
end
movie(A,3,1);
Doesn't seem to be working however. Exercise is now becoming counter productive. A little help.
Thanks,
Paul
2 Commenti
Oleg Komarov
il 11 Mar 2011
What doesn't work? You get an error message or unexpected behavior?
Can you post an example of arrayD?
Paul
il 16 Mar 2011
Risposte (1)
Sean de Wolski
il 16 Mar 2011
using:
arrayD = rand(300,300,300);
Works for me.
Categorie
Scopri di più su Animation in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!