Borrar filtros
Borrar filtros

How to add a column to a tall table created from a datastore?

6 visualizaciones (últimos 30 días)
Kyle Padilla
Kyle Padilla el 20 de Abr. de 2022
Respondida: Suraj el 4 de Oct. de 2023
I created a tall table and wrote it out to a folder of .mat files. Later, I loaded that tall table into MATLAB using a datastore. I now want to add a column to this tall table. I tried using the horzcat square brackets notation to do this. However, MATLAB says that when doing a horzcat, the data must be derived from a single tall array. If I try to add it by assigning a new variable, MATLAB says that tall arrays must be based on the same datastore. This sounds like I would need to add the column prior to writing out the tall table, since I'm adding a column with new data not in the current tall table. Is there a way to add the column after loading in the tall table via datastore?

Respuestas (1)

Suraj
Suraj el 4 de Oct. de 2023
Hi Kyle,
I understand that you're trying to add a column to a tall table. Please refer to the following MATLAB Answer for more information: https://www.mathworks.com/matlabcentral/answers/354300-problems-when-adding-a-column-to-tall-array#answer_279459
I hope this helps!
Best regards,
Suraj.

Categorías

Más información sobre Large Files and Big Data en Help Center y File Exchange.

Productos


Versión

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by