MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Learn moreOpportunities for recent engineering grads.
Apply TodayMATLAB Central > MATLAB Newsreader > Contracting Matrices 

I have a 4x4x4x4 matrices. I want to contract one of the indices and make a 4x4x4 matrix. The original matrix has both co and contra varient components. Here is a excerpt from my code: 
"Philosophaie" <ertlejack@sbcglobal.net> wrote in message <gj5ksv$1mq$1@fred.mathworks.com>... 
> temp = reshape(Riemann,4,4,[],1); 
"Philosophaie" <ertlejack@sbcglobal.net> wrote in message <gj5tat$jb2$1@fred.mathworks.com>... 
"Roger Stafford" <ellieandrogerxyzzy@mindspring.com.invalid> wrote in message <gj65bp$dhc$1@fred.mathworks.com>... 
"Philosophaie" <ertlejack@sbcglobal.net> wrote in message <gj66sh$dfj$1@fred.mathworks.com>... 
"Roger Stafford" <ellieandrogerxyzzy@mindspring.com.invalid> wrote in message <gj6a3l$nt3$1@fred.mathworks.com>... 

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.