I am supposed to get list of matrices but I am getting this.What do they mean?
    3 Ansichten (letzte 30 Tage)
  
       Ältere Kommentare anzeigen
    
    hrushikesh kyathari
 am 19 Jun. 2019
  
    
    
    
    
    Kommentiert: hrushikesh kyathari
 am 19 Jun. 2019
            traj =
  1×10 cell array
  Columns 1 through 8
    {4×4 double}    {4×4 double}    {4×4 double}    {4×4 double}    {4×4 double}    {4×4 double}    {4×4 double}    {4×4 double}
  Columns 9 through 10
    {4×4 double}    {4×4 double}
0 Kommentare
Akzeptierte Antwort
  Adam Danz
    
      
 am 19 Jun. 2019
        
      Bearbeitet: Adam Danz
    
      
 am 19 Jun. 2019
  
      traj{1}      %that's your first matrix
traj{2}      %that's your 2nd  matrix, etc....
Since each matrix is the same size (4x4), if you wanted to combine the matrices stored in each element of the cell array into one big matrix, you could concatenate them horizontally
cell2mat(traj)  %assumes traj has size 1 x n
or concatenate them vertically
cell2mat(traj') %assumes traj has size 1 x n
or you could conver them to a 4 x 4 x 10 array
reshape(cell2mat(traj),4,4,10) %assumes traj has size 1 x n
or it might be best to just leave them in the cell array depending on how you will be using those data. 
4 Kommentare
  Stephen23
      
      
 am 19 Jun. 2019
				You can also view all of the cell array's contents by doing this:
traj{:}
Weitere Antworten (1)
  Jos (10584)
      
      
 am 19 Jun. 2019
        Your variable is a cell array, which is a very useful and common way to store things in matlab. Read more on cell arrays in the documentation:
0 Kommentare
Siehe auch
Kategorien
				Mehr zu Logical finden Sie in Help Center und File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



