Programming Previous page   Next Page

The Polynom display Method

Here is @polynom/display.m. This method relies on the char method to produce a string representation of the polynomial, which is then displayed on the screen. This method produces output that is the same as standard MATLAB output. That is, the variable name is displayed followed by an equal sign, then a blank line, then a new line with the value.

The statement

creates a polynom object. Since the statement is not terminated with a semicolon, the resulting output is


Previous page  Converter Methods for the Polynom Class The Polynom subsref Method Next page

© 1994-2005 The MathWorks, Inc.