For example,. fplot (@sin, [-10, 10], 201);. produces a plot that is equivalent to the one above, but also includes a legend ...
www.gnu.org