octave-maintainers
[Top][All Lists]
Advanced

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

Re: overloading rules


From: Lukas Reichlin
Subject: Re: overloading rules
Date: Tue, 8 May 2012 22:09:17 +0200

On 08.05.2012, at 21:03, CdeMills wrote:

> Hello,
> 
> in the dataframe package, I wrote specific functions which shadows the core
> functions, like plus, minus, ... Now I would like to be able to export
> directly a dataframe into something that programs like Exell could read. One
> of the candidate would be dlmwrite, which is defined in a .m file. Is it
> possible to shadow dlmwrite in such a way that if the matrix argument is a
> dataframe, a specific, dataframe-aware version is called in place of the
> original one ?
> 
> Regards
> 
> Pascal

Hi Pascal,

If you add @dataframe/dlmwrite.m, it will be used by Octave automatically if 
you call the function dlmwrite() with one or more arguments of type dataframe. 
If none of the arguments are dataframes, the built-in dlmwrite will be used.

Hope this helps,
Lukas



reply via email to

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