필터 지우기
필터 지우기

Finding corresponding value of one vector in another vector

조회 수: 1 (최근 30일)
Yamana Uno
Yamana Uno 2023년 11월 13일
답변: Voss 2023년 11월 13일
Hi, for example if I have vectors A = [0 1 2 3 4 5 6 7 8 9 10] and B = [0 100 200 300 400 500 600 700 800 900 1000]. and am getting asked to find the value of B when A=7, how do I do that?
Thank you!

채택된 답변

Voss
Voss 2023년 11월 13일
A = [0 1 2 3 4 5 6 7 8 9 10];
B = [0 100 200 300 400 500 600 700 800 900 1000];
result = B(A==7)
result = 700

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by