Not sure what the table looks like so this is at best a guess.
movstd returns a vector (or maybe a matrix). You're using a relational operator on that as the condition of your if. That's never what you want. Probably, you want something like
binary = (M < 10)
to return a vector of logicals.
