Merge more that two tables together
    6 vues (au cours des 30 derniers jours)
  
       Afficher commentaires plus anciens
    
Is there a way to merge multiple tables? I am trying to use outerjoin and innejoin functions to merge multiple tables but it does look like thats possible, Is there a way around this?
0 commentaires
Réponse acceptée
  Dave B
    
 le 4 Nov 2021
        You can nest joins:
outerjoin(t3, outerjoin(t1, t2)) 
Or in a loop, if you have an array of tables:
tbls={t1 t2 t3 t4};
tjoin=tbls{1};
for i = 2:numel(tbls)
    tjoin=outerjoin(tjoin, tbls{i})
end
1 commentaire
Plus de réponses (0)
Voir également
Catégories
				En savoir plus sur Tables dans Help Center et File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

