how to add a column to a tall table?

4 次查看(过去 30 天)
sani
sani 2020-5-15
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

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Tall Arrays 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by