How to delete variables in a table within a cell array
3 ビュー (過去 30 日間)
古いコメントを表示
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.
0 件のコメント
採用された回答
Voss
2024 年 6 月 3 日
Here's one way:
C = cellfun(@(t)removevars(t,[1 2]),C,'UniformOutput',false);
0 件のコメント
その他の回答 (1 件)
参考
カテゴリ
Help Center および File Exchange で Tables についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!