For a filter using the Signal Processing Toolbox, use thefreqz (link) orfreqs (link on thefreqz page) functions.
For a control system using the Control System Toolbox, use thebode (link) function. Note that it is essentially impossible to change any of the plot characteristics usingbode, so if you want to customise the plot, get the outputs frombode and plot them using thesubplot function.