MATLAB Answers

Find indexes of string elements inside another string

1 view (last 30 days)
Hello
I have two strings like:
A=["a" "b" "c" "d" "e" "f" "g"]
B=["b" "d" "f" "a"]
How can I know that elements in B inside A is B_index=[2 4 6 1]?
Thanks for helping!

  0 Comments

Sign in to comment.

Accepted Answer

More Answers (0)

Products


Release

R2018b

Translated by