How to add column (after multiplication) in file imported from excel

1 次查看(过去 30 天)
I have an excel file. I imported the whole table using readtable command. Now i want to apply multiply and conditions on various columns which will result in new columns. I want to add those columns in the same file. how do i proceed

采纳的回答

Wan Ji
Wan Ji 2021-8-25
Then if you have new column named newColumn
previousTable = readtable('...');
newTable = [previousTable, table(newColunm)];
writetable(newTable, 'myNewTable.xls')

更多回答(0 个)

标签

Community Treasure Hunt

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

Start Hunting!

Translated by