After numpy 1.20.0, np.bool is deprecated with np.bool_, but the default datatpype for matlab array is denoted as np.bool