I am trying to play a video in MATLAB using the data in the struct matrix S. Please let me know how to proceed. Matrices 't_video' denotes the time and xg_sc, yg_sc should change with the time.

 채택된 답변

Geoff Hayes
Geoff Hayes 2016년 2월 28일

0 개 추천

Babu - are you trying to plot the rho_video data at each tilmestep? For example, could you do something like
figure;
for k=1:length(S.t_video)
image(squeeze(S.rho_video(k,:,:)));
pause(1);
end
We read each of the frames (?) from rho_video and draw it to the figure. We then wait one second before proceeding to the next frame. squeeze is used to remove the singleton dimension.

추가 답변 (0개)

카테고리

질문:

2016년 2월 26일

댓글:

2016년 2월 28일

Community Treasure Hunt

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

Start Hunting!

Translated by