Show column matrices of different sizes as tables?
    5 Ansichten (letzte 30 Tage)
  
       Ältere Kommentare anzeigen
    
    Abdullah Türk
 am 30 Dez. 2018
  
    
    
    
    
    Bearbeitet: per isakson
      
      
 am 30 Dez. 2018
            Hello everyone,
I have 6 columns matrix of different sizes. I would like to show these matrices in a table as follows.
A matrix            B matrix            C matrix            D matrix            E matrix            F matrix
0.5                    1                        4                        6                       8                        10
0.2                    2                        8                        4                       9                        17
0.1                    5                        7                        6                       4                        16
0.3                                              6                        5                                                 20
0.8                                              8                        8                                                 36
                                                   4                        9
                                                   1                        10
                                                   9                        18
                                                                              20
                                                                               5
                                                                               8
                                                                               6
Here is my code and error:
T = table(A,B,C,D,E,F);
Error using table (line 253)
All variables must have the same number of rows.
How can I solve this problem? Thank you so much.
0 Kommentare
Akzeptierte Antwort
  per isakson
      
      
 am 30 Dez. 2018
        
      Bearbeitet: per isakson
      
      
 am 30 Dez. 2018
  
      The short answer is: You cannot, it's not supported. The walk-around is to pad the vectors to equal length with zeros, NaNs or some other number. 
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
				Mehr zu Tables 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!

