Combining multiple tables with same variable
Mostrar comentarios más antiguos
Day1 of using Matlab I have managed to pull in data from an outside vendor that is organized like this
Data1 = 1×5 cell array {50×2 table} {50×2 table} {50×2 table} {50×2 table} {50×2 table}
Each 50x2 table has a date column first followed by a price column "S" is a 1x5 cell containing the source name of each price
How do I combine this into a single table that includes the date and appropriate name and reads left to right Date|Name1|Name2|Name3|Name4|Name5
Thanks
Respuestas (2)
Star Strider
el 9 de Nov. de 2018
0 votos
2 comentarios
Guillaume
el 9 de Nov. de 2018
Star Strider
el 9 de Nov. de 2018
@Guillaume — Thank you!
Peter Perkins
el 15 de Nov. de 2018
0 votos
If there's really only 5, just rename the variables and horzcat, and I guess also leave out the date var from all but one. I guess maybe S is a separate cell array containing the names of each price? So use that to modify the var names. But your description is not at all clear.
Categorías
Más información sobre Tables en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!