How to select particular elements from an array

조회 수: 11 (최근 30일)
Amitrajit Mukherjee
Amitrajit Mukherjee 2018년 1월 8일
댓글: Amitrajit Mukherjee 2018년 1월 8일
Hi, I have an array A = [1 2 3 4 5 6 7 8 9 10], and an another array of lower size B = [2 6 9]..I need to logically find components from B in A so that the result C comes as [1 0 1 1 1 0 1 1 0 1] or [0 1 0 0 0 1 0 0 1 0]..
thanks, Amitrajit

채택된 답변

Birdman
Birdman 2018년 1월 8일

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Operators and Elementary Operations에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by