help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

override display() for class


From: Steve White
Subject: override display() for class
Date: Thu, 9 Dec 2010 23:37:43 +0100

Hi!

I have overridden the display() function for a class,
but the results aren't what I expect.  I don't know how to
make it print out the variable name.

For example, if one types
a = 1
Octave prints out the whole expression
a = 1
I want to get this effect when, say assigning a variable to my class.

However, if in a class I override the display() function to just call 
printf() on the class members, it does not print out the variable name, 
just the output of printf.

Cheers!
                                          


reply via email to

[Prev in Thread] Current Thread [Next in Thread]