Copying Data into a table

6 ビュー (過去 30 日間)
Youssef Darwich
Youssef Darwich 2020 年 6 月 13 日
コメント済み: Youssef Darwich 2020 年 6 月 13 日
Hello Guys,
I'am new to MATLAB and need your help.
I have a table 'T' and i need to copy its Values which correspond to 'T.STAT = 0' into other table 'T_new'
T :
STAT TIME X Y Z
____ ____ _____ ______ _______
1 491 62.15 18.85 3.2843
255 0 174.9 151.05 0
255 0 0 0 0
255 0 0 0 0
0 0 0.25 18.85 0.69607
0 4 0.25 18.85 0.65686
6 9 0.2 18.75 0.5098
0 14 0.15 18.5 0.22549
0 19 0.05 17.95 0.20588
0 24 0 17.1 0.14705
8 29 0 16 0.12745
0 34 0.1 14.85 0.10784
0 39 0.3 13.8 0.13725
0 44 0.6 13 0.13725
0 49 1.05 12.4 0.15686
for T.STAT (1:end) if (T.STAT) == 0 T_new = T end end
Error: Invalid use of operator
Getting this error

採用された回答

madhan ravi
madhan ravi 2020 年 6 月 13 日
編集済み: madhan ravi 2020 年 6 月 13 日
NewTable = T(T.STAT==0, :)
  1 件のコメント
Youssef Darwich
Youssef Darwich 2020 年 6 月 13 日
thank you, this was very helpful :)

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

その他の回答 (0 件)

カテゴリ

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

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by