MATLAB: Error when copying examples from held doc to MATLAB

help documentation

Sorry for the newbie question, but shouldn't I be able to copy an example right from the help doc into MATLAB and have it work? It looks like there are extra/different characters in there that I have never seen, ie colons, but I don't understand 1)why they need to be there in the first place and 2)which colons/characters I should remove.
For example, from the plot::Scatterplot function:
xdata := [6, 9, 17, 0, 13, 9, 9, 12, 12, 12]: ydata := [7, 8, 20, 2, 11, 8, 9, 12, 13, 15]: b := plot::Scatterplot(xdata, ydata): plot(b)
throws an error and makes the numeric variables/functions into strings. Why?
Using MATLAB R2013a.
Thanks, J

Best Answer

  • Turns out it was under a Symbolic Math Toolbox. When I search in MATLAB doc center, functions in other toolboxes and products come up in the search results. I called Tech Support and they said to click "Refine Search by Product," which should make things much easier!