how to concatenate matrix in Matlab -


I have n dxd matrices in Matlab and I want to add them to get a Dxdxn matrix where (:,: , I) i ^ th matrix (i = 1..n) is i how can i do this?

use

  outside = cat 3, mat1, mat2 , Mat3, ..., Matn);   

If arrays are elements of a cell array,

  outside = cat (3, cellar {:});    

Comments

Popular posts from this blog

qt - switch/case statement in C++ with a QString type -

python - sqlite3.OperationalError: near "REFERENCES": syntax error - foreign key creating -

Python's equivalent for Ruby's define_method? -