extracting values from tables in a cell array

4 ビュー (過去 30 日間)
MA
MA 2021 年 9 月 20 日
編集済み: Stephen23 2021 年 9 月 20 日
hello, having the following tables stored in a cell array, how can we access these tables one by one to extract for example the values of the very first five cells in the first row, use these values to create some knid of an index and store that index in the second column of the cell array?
Note: the code used to create this cell array is as follows:
t = readtable(FileName);
idxBkpt = find(diff([t.GDALT])<0);
split_indices = sort(1+idxBkpt); %beginnings of blocks
blk = diff([1 reshape(split_indices, 1, []) size(t,1)+1]);
splits = mat2cell(t, blk, size(t,2));
results{k,2} = splits;
  1 件のコメント
Stephen23
Stephen23 2021 年 9 月 20 日
編集済み: Stephen23 2021 年 9 月 20 日
"how can we access these tables one by one..."
A FOR loop would be the obvious solution. What did you try so far?
See also earlier questions on this topic by the same OP:

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeMatrices and Arrays についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by