There is no simple command to generate m-sequences.
You can use one of the routines from the File Exchange, such as https://www.mathworks.com/matlabcentral/fileexchange/3083-m-sequence-generation-program or https://www.mathworks.com/matlabcentral/fileexchange/27133-m-sequence-generation-program-using-a-search-algorithm