필터 지우기
필터 지우기

figuring out the index of a vector which matches certain criterion

조회 수: 2 (최근 30일)
Kaushik
Kaushik 2012년 12월 27일
say i have a vector x1 = [3,4,6,7,8,9]; say i have another vector x2 = [4,8];
is there a way to figure out the index where x2 has occured inside x1. That is the solution i want is another vector x3 = [2,5], 2 and 5 being the respective index where x2(1) and x2(2) has occured inside vector x1.

채택된 답변

Matt J
Matt J 2012년 12월 27일
The ismember command

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by