def mlarr(*args, **kwargs):
 arr = np.array(*args, **kwargs)
 arr.shape = matdims(arr)
 return arr

def mlarr ( * args , ** kwargs ) : arr = np . array ( * args , ** kwargs ) arr . shape = matdims ( arr ) return arr
convenience function to return matlab-compatible 2d array .