I have 3D matrix with dimension of 600x600x28 which the last index is number of frames and want to convert it to video file. I tried as a below but raised with error:
Unrecognized function or variable 'cmap'.
Orig = rand(600,600,28);
X = permute(Orig,[1 2 4 3]);
movie = immovie(X,cmap);