This question shows research effort; it is useful and clear
1
This question does not show any research effort; it is unclear or not useful
Bookmark this question.
Show activity on this post.
intersect 関数を使用して、2 つのセル配列 A と B ([~,idx]=intersect(A,B)) で共通の文字列を検索し、インデックスをidxに保存します。次に、共通文字列を A(idx) で抽出します。結果がアルファベット順にソートされていることがわかります。Aでソートしたようにソートしたいのですが、これらの文字列がアルファベット順にソートされるのはなぜですか?