How to select particular value from any table?

2 views (last 30 days)
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?

Accepted Answer

Birdman
Birdman on 1 Dec 2017
Edited: Birdman on 1 Dec 2017
One approach:
[r,c]=find(Table.freq==7);
S=Table.s(r,c);
  6 Comments
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?
Birdman
Birdman on 1 Dec 2017
ind=ismember(Table.freq,[7 9]);&combined
Table.s(ind)

Sign in to comment.

More Answers (0)

Categories

Find more on Tables in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!