how to add a column to a tall table?

2 visualizaciones (últimos 30 días)
sani
sani el 15 de Mayo de 2020
Hi,
I want to add a column of "1" to a tall table, but getting this error : "Indexed assignments of the form T(...,...) = B are not supported for tall table."
This is the first time i'm using tall arrays, tried applaying the tall indexing help but with no sucsess...
this is my code:
Ge_table(Ge_table.energy < 0, :) = []; %remove bad events in HPGe
Ge_table.ColumnNew = tall('detector'); % this was a try to create a new column
Ge_table.detector = {1};
Ge_table.Properties.VariableNames{4} = 'detector'; %this is another try as the in-memory method

Respuestas (0)

Categorías

Más información sobre Tall Arrays en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by