Clear Filters
Clear Filters

how to add a column to a tall table?

3 views (last 30 days)
sani
sani on 15 May 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

Answers (0)

Community Treasure Hunt

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

Start Hunting!