Programming |
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.
function display(p) % POLYNOM/DISPLAY Command window display of a polynom disp(' '); disp([inputname(1),' = ']) disp(' '); disp([' ' char(p)]) disp(' ');
creates a polynom object. Since the statement is not terminated with a semicolon, the resulting output is
Converter Methods for the Polynom Class | The Polynom subsref Method |
© 1994-2005 The MathWorks, Inc.