How to select particular value from any table?

2 ビュー (過去 30 日間)
Prathap Sakalenahalli Honnegowda
Prathap Sakalenahalli Honnegowda 2017 年 12 月 1 日
コメント済み: Birdman 2017 年 12 月 1 日
I have table of frequency, s parameters and angle.(if you know .s1p files) the values of each variables are listed below for ex frequency has 10 values 1 2 3 4 5 6 7 8 9 10 similarly other two has 10 10 values.
now i want to know in which row i have frequency = 7 in code without seeing the table. and also for that particular frequency i want to know s parameter value.
Please help me to find out how?

採用された回答

Birdman
Birdman 2017 年 12 月 1 日
編集済み: Birdman 2017 年 12 月 1 日
One approach:
[r,c]=find(Table.freq==7);
S=Table.s(r,c);
  6 件のコメント
Prathap Sakalenahalli Honnegowda
Prathap Sakalenahalli Honnegowda 2017 年 12 月 1 日
Thank you so much! one last question for the day! [r,c]=find(Table.freq==7); [r1,c1]=find(Table.freq==9);
how to combine this and write in one line?
Birdman
Birdman 2017 年 12 月 1 日
ind=ismember(Table.freq,[7 9]);&combined
Table.s(ind)

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

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by