Programming and Data Types | ![]() ![]() |
Listing Class Methods
methods('class_name')
methods class_name
shows all the methods available for a particular class. For the polynom
example, the output is
methods polynomMethods for class polynom:
char |
|
|
|
|
|
diff |
|
|
|
|
|
Plotting the two polynom objects x
and p
calls most of these methods.
x = polynom([1 0]);
p = polynom([1 0 -2 -5]); plot(diff(p*p + 10*p + 20*x) - 20)
![]()
![]() | Overloading Functions for the Polynom Class | Building on Other Classes | ![]() |