a=[...];b=[...] x = (a>b).*a+(b>=a).*b y = (a<b).*a+(b<=a).*b 转载于:https://www.cnblogs.com/Neil-Wu/p/4232313.html