I have a 9000x21 matrix where each 60x21 section represents a frame. how do I plot each frame sequentially to make an animated plot. This is what I have so far.
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Jonathan Fabian Zamudio
el 6 de Oct. de 2018
Respondida: jonas
el 6 de Oct. de 2018
A=data % its a 9000x21 matrix
1stframe=A(1:60,:);
surf(1stframe)
view(2)
0 comentarios
Respuesta aceptada
jonas
el 6 de Oct. de 2018
Here's something you can start from
%%Some data
A=rand(9000,21);
figure;
%%Config axes
axes('view',[0 90],'color','none');hold on
h=surf(nan(60,21))
axis tight
%%Draw frames sequentially with a pause between frames
for i=1:100;
h.ZData=A(60*(i-1)+1:60*i,:)
pause(1)
end
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Animation en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!