I am trying to get a unique sequence form given sets?

example:s1=[1 2 3],s2=[4 5 6] now what I need is x=[1 4 2 5 3 6] or x=[1 4 5 2 6 3], each element will come from sets in a unique manner, i.e each element should come only if it preceding number is present??

Answers (0)

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Tags

Asked:

on 6 Jul 2016

Community Treasure Hunt

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

Start Hunting!