How to make a video from a 3d matrix in matlab -


i have whole bunch of 2d matrices in matlab (they're suppose make 3d matrix 3rd dimension time), , i'm trying make video image data.

i know can use surf() make surface plot using 1 of 2d matrices, i'm not sure command invoke take 2d matrices , convert them video of surface plot.

can help?

the built-in function immovie(x,map) 1 option want. function expects m-by-n-by-1-by-k 4d matrix, 4th dimension frames of movie. since you're starting 3d matrix, use permute first:

orig; #% 3d matrix x = permute(orig,[1 2 4 3]); #% 4d matrix movie = immovie(x,map); #% map colormap want use  implay(movie); 

Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -