How can i extract parameters from a vector at specific values
1 view (last 30 days)
Show older comments
Gisela Alejandra Peña Sanchez
on 27 Feb 2020
Commented: Gisela Alejandra Peña Sanchez
on 27 Feb 2020
Hi everyone,
i looking for a way to get in a new vectore 'D' , values of a vectore 'A' when the values of B are equal to the values of C
lets say i have A = [1,2,3,4,5,7,8,9,10]
and B =[11,12,13,14,15,16,17,18,19,20] ; both A and B of the same lenght,
i want to compare B with a new vector C = [11,15,20]
that returns values in A when B=C
expected output D=[1,5,10]
2 Comments
Accepted Answer
More Answers (0)
See Also
Categories
Find more on Tables in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!