How to select particular value from any table?

2 次查看(过去 30 天)
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
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?

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Tables 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by