If constname is 146x4 char array (column vector of 146 4-character strings, I need the following command to return the index number of the string 'M12 '. But it doesn't. strfind doesn't work with arrays of strings. Which command does? My only option right now is a for loop and the strcmp command, which works, but, hey, this is Matlab!
index = strfind(constname,'M12 ')