Hi Ron,
MATLAB R2019b onwards lteBCHDecode function supports the NB-IoT 34 bits MIB decoding. Your problem should be solved if you work on the latest release.
BTW, if you are working on NB-IoT downlink simulations, for NPBCH encoding and decoding, there are functions lteNPBCH and lteNPBCHDecode released in R2019b MATLAB version. To see an example of how to use them, see "NB-IoT Cell Search and MIB Recovery" example.