compare columns & Display output using excel sheet
1 回表示 (過去 30 日間)
古いコメントを表示
i have 3 columns in abc.xlsx and the data is
X Y Z
1 1 10
1 2 20
1 3 30
1 4 40
1 5 50
2 1 60
2 2 70
2 3 80
2 4 90
2 5 100
3 1 110
3 2 120
3 3 130
3 4 140
now user will enter any two values that i want to match with X and Y Column once the match is found then i want to display corresponding c column cell value
for eg: My input is 2 and 3 then i want to display the value 80
0 件のコメント
採用された回答
Azzi Abdelmalek
2013 年 8 月 5 日
編集済み: Azzi Abdelmalek
2013 年 8 月 5 日
A=[ 1 1 10
1 2 20
1 3 30
1 4 40
1 5 50
2 1 60
2 2 70
2 3 80
2 4 90
2 5 100
3 1 110
3 2 120
3 3 130
3 4 140]
x=2,
y=3,
out=A(ismember(A(:,1:2),[x y],'rows'),3)
その他の回答 (1 件)
Dimple
2013 年 8 月 20 日
1 件のコメント
Azzi Abdelmalek
2013 年 8 月 20 日
Dimple, is this an answer or a question? If you want to ask a new question, post a new one in Ask a question
参考
カテゴリ
Help Center および File Exchange で Spreadsheets についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!