필터 지우기
필터 지우기

Find value in one row that corresponds to value within another row in the same table column

조회 수: 7 (최근 30일)
Hi,
I have a table with 2 rows and 4 columns
I want to find the value in row 2 that corresponds to the value e.g. '3' in row 1 in the same column
Thanks a bunch

채택된 답변

Cris LaPierre
Cris LaPierre 2023년 3월 23일
T = table([1;2],[2;4],[3;6],[4;8])
T = 2×4 table
Var1 Var2 Var3 Var4 ____ ____ ____ ____ 1 2 3 4 2 4 6 8
T(2,T{1,:}==3)
ans = table
Var3 ____ 6

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Tables에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by