フィルターのクリア

Search Table for value using other variables

2 ビュー (過去 30 日間)
Doug
Doug 2020 年 5 月 27 日
コメント済み: Doug 2020 年 5 月 28 日
I am wanting to pull out and manipulate a value from the below table.
Using P1, P4 and P7 to output the value from P8.
Help would be appreciated with this issue.

採用された回答

Cris LaPierre
Cris LaPierre 2020 年 5 月 28 日
編集済み: Cris LaPierre 2020 年 5 月 28 日
ind = t.P1==48.3 & t.P4==16 & t.P7==44.79;
valP8 = t.P8(ind)
Of course you'll have to use the actual table and full variable names from your table.
  3 件のコメント
Cris LaPierre
Cris LaPierre 2020 年 5 月 28 日
t2.varName = t.P8;
Just keep in mind that t2 will have to have the same number of rows as t.
Doug
Doug 2020 年 5 月 28 日
Thanks heaps Cris. Much appreciated.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by