Laufer, Ralph wrote: > I am a complete newbie and was wondering if Octave can interpret a > Matlab window function of the type: > > w = window(@tukeywin,n) > > and if so, are there any special add-ins needed? > > Thanks > Ralph > > The reason for the "sick" syntax in windows is that "w = window()" starts a function "wintool" that is a UI to select a windowing function. As written above the function resolves to
w = tukeywin (n) Write it that way in both Matlab and Octave and it'll be faster and more elegant. I suppose we should add a function to simulate this syntax though. There are some other traps with this function since as if no output argument is given, then there is no output to the stdout. I committed a trivial function function wout = window (f, n, varargin) if (nargin == 0) error ("window: UI tool not supported"); elseif (nargin > 1) w = feval (f, n, varargin{:}); if (nargout > 0) wout = w; endif else print_usage (); endif endfunction to octave-forge for this function. D. -- David Bateman [EMAIL PROTECTED] Motorola Labs - Paris +33 1 69 35 48 04 (Ph) Parc Les Algorithmes, Commune de St Aubin +33 6 72 01 06 33 (Mob) 91193 Gif-Sur-Yvette FRANCE +33 1 69 35 77 01 (Fax) The information contained in this communication has been classified as: [x] General Business Information [ ] Motorola Internal Use Only [ ] Motorola Confidential Proprietary ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Octave-dev mailing list Octave-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/octave-dev