gfpretty
Polynomial in traditional format
Syntax
gfpretty(a)
gfpretty(a,st)
gfpretty(a,st,n)
Description
gfpretty(a)
displays a polynomial in a traditional
format, using X
as the variable and the entries of the row vector
a
as the coefficients in order of ascending powers. The polynomial is
displayed in order of ascending powers. Terms having a zero coefficient are not
displayed.
gfpretty(a,st)
is the same as the first syntax listed,
except that the content of st
is used as the variable instead of
X
.
gfpretty(a,st,n)
is the same as the first syntax
listed, except that the content of st
is used as the variable instead of
X
, and each line of the display has width n
instead of
the default value of 79.
Note
For all syntaxes: If you do not use a fixed-width font, the spacing in the display might not look correct.
Examples
Version History
Introduced before R2006a