I think there is no direct function or way to implement special order set 1 or 2 in MATLAB. You may consider using some tools that interfaces with MATLAB. Please find a similar question on this topic and refer to the same for more information:
Hope this helps!