3D matrix rotation
Y=wrot3(x,M,N)
wrot3 is a 3D matrix rotation utility function on time domain. wrot3(X,M,0) is for rotation on the direction indicated by M and could be converted back by wrot3(wrot3(X,M,0),M,1).
a=rand(3,3,3); Y=wrot3(a,2,0);
Roger Liu and Isaac Zhi