How to select particular elements from an array

6 vues (au cours des 30 derniers jours)
Amitrajit Mukherjee
Amitrajit Mukherjee le 8 Jan 2018
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

Réponse acceptée

Birdman
Birdman le 8 Jan 2018

Plus de réponses (0)

Catégories

En savoir plus sur Operators and Elementary Operations dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by