how can i setxor a string with out getting a sorted result ?

when i compare and eliminate the common letter from two string i am getting result in sorted according to alphabetical order. but i want it as it is. so which function i have to use it ????

 Accepted Answer

In R2012a and later you can use the 'stable' option:
setxor('hello','world','stable')
And for more info
doc setxor

More Answers (0)

Categories

Tags

Community Treasure Hunt

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

Start Hunting!