How to delete variables in a table within a cell array
显示 更早的评论
Hello there I have a 10x1 cell array with each cell containing a 540x3 table of values. I am looking to delete the first two colums of each table in the cell array so that there is a 10x1 cell array with each cell contaning a 540x1 table with only the last column. Is there an easy wasy to do this? Thank you so much.
采纳的回答
更多回答(1 个)
Torsten
2024-6-3
for i=1:10
c{i}(:,1:2) = [];
end
类别
在 帮助中心 和 File Exchange 中查找有关 Tables 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!