[OctDev] patch for plotyy.m

2009-06-12 Thread Eric Chassande-Mottin
plotyy.m is not robust. an error occurs depending on figure with axes is already opened or not. here is a patch that should solve the problem. *** old/plotyy.m2009-06-12 13:25:50.0 +0200 --- new/plotyy.m2009-06-12 13:25:11.0 +0200 *** *** 72,82

[OctDev] textread: comment out lines starting with #

2009-10-08 Thread Eric Chassande-Mottin
matlab textreads has a "commentstyle" option where all lines starting with a "#" or "%" or "//" are commented out when flag is set to "matlab" or "shell" or "c++" resp. this should be simple to implement. I gave a try (see patch below) but haven't succeed so far. textread.cc uses classes and I am

[OctDev] Fwd: textread: comment out lines starting with #

2009-10-12 Thread Eric Chassande-Mottin
> Would you consider coming up with an m-file implementation? that's a good idea. let me try. just a question: which Octave's command should I use to read an entire line of an ASCII file (ie, upto "\n") and put the result in a string? I don't get this result when doing fscanf(fid,"%s\n",1). eric

Re: [OctDev] textread: comment out lines starting with #

2009-10-12 Thread Eric Chassande-Mottin
> which Octave's command should I use to read an entire line of > an ASCII file (ie, upto "\n") and put the result in a string? > I don't get this result when doing fscanf(fid,"%s\n",1). got it: fgetl() e. -- Come build

Re: [OctDev] textread: comment out lines starting with #

2009-10-12 Thread Eric Chassande-Mottin
here is a possible implementation of textread.m: function res = textread(file, formatstr, prop, val) if nargin<2 print_usage; endif comment_flag=false; if nargin>2 switch prop case "commentstyle" comment_flag=true; comment_val=val; endswitch endif

Re: [OctDev] textread: comment out lines starting with #

2009-10-15 Thread Eric Chassande-Mottin
@end itemize ## Copyright (C) 2009 Eric Chassande-Mottin, CNRS (France) ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 3 of the License, or ## (at

Re: [OctDev] textread: comment out lines starting with #

2009-10-17 Thread Eric Chassande-Mottin
## @item \"headerlines\": ## @var{value} represents the number of header lines to skip. ## @end itemize ## Copyright (C) 2009 Eric Chassande-Mottin, CNRS (France) ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License

Re: [OctDev] textread: comment out lines starting with #

2009-10-17 Thread Eric Chassande-Mottin
hi Søren thanks for the trick with the cell array. please do your tests with this version instead. it includes the headerline prop and the '%*' dummy specifier. those are the basic functionalities of the original textread we want to have in octave. the others are kind of gadget, i think. cheers,

Re: [OctDev] textread: comment out lines starting with #

2009-10-19 Thread Eric Chassande-Mottin
> Maybe. I just checked that you're right; however, the online Matlab > docs also seem to advise against strread and textread, suggesting > "textscan" instead. Right now I don't have time to read; but maybe > "textscan" is superior? In any case, I'm not against putting strread > and textread into t

Re: [OctDev] textread: comment out lines starting with #

2009-10-19 Thread Eric Chassande-Mottin
> What is the purpose of that? The 'split_by' function calls 'strtrim'; > doesn't that remove all the whitespace that needs to be removed? strtrim removes leading and trailing blanks. instead the above line replaces the occurrence of multiple blanks (including in between fields) by a single white

Re: [OctDev] textread: comment out lines starting with #

2009-10-19 Thread Eric Chassande-Mottin
perhaps a better option is: ## Deblank string 'str' regexprep(str,strcat("[",white_spaces,"]+")," "); --> if ~isempty(white_spaces) ## Remove multiple white space from string 'str' regexprep(str,strcat("[",white_spaces,"]+")," "); endif eric --

Re: [OctDev] providing r/w FITS files support

2010-09-05 Thread Eric Chassande-Mottin
hi! I have been working on exactly the same thing during the last three weeks! I wouldn't have if I knew that you were about to submit a dedicated package. I attach my own code to this email. Checking quickly through your code, I see that it might be useful to merge part of mine into yours such a

[OctDev] registration as an OctaveForge developer

2008-02-27 Thread Eric Chassande-Mottin
phase implementation with the advantage that the user can customize its own anti-aliasing filter. I have created an account on sourceForge. please, let me know for the next step. cheers, eric. -- Forwarded message -- From: Eric Chassande-Mottin <[EMAIL PROTECTED]> Date: Mon, Feb 25,

Re: [OctDev] registration as an OctaveForge developer

2008-02-27 Thread Eric Chassande-Mottin
> It seems the attachment was dropped (this happens sometimes on this > list, haven't figured out why). I assume it's the same code you sent to > the help list -- is that correct? yes it is > What is your account name? Tell me, and I can give you commit access. I > guess your code should end

[OctDev] resample.m does not resample correctly

2008-02-29 Thread Eric Chassande-Mottin
hi, I have rewritten resample.m using a polyphase implementation. See codes attached to this message. With the test resample_test.m, I compare this code to the current version of resample.m in OctaveForge. The test consists in resampling sinusoids of various frequencies and evaluate the disc

[OctDev] levinson.m incompatibility

2008-02-29 Thread Eric Chassande-Mottin
levinson(rand(10,1),9) leads to an undetermined error with GNU Octave. here is a patch to current levinson.m that solves this problem. cheers, eric. - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft

Re: [OctDev] sosfilt committed, note on resample.m

2008-02-29 Thread Eric Chassande-Mottin
> > I have committed main/signal/src/sosfilt.cc. > > I have changed the code according to your suggestions. > > main/signal/src/Makefile changed accordingly. > I believe the signal package contains an INDEX file. This is a file that > categorises the functions in the package. Could you edit thi

[OctDev] levinson.m incompatibility

2008-02-29 Thread Eric Chassande-Mottin
one more try -- Forwarded message -- Date: Fri, Feb 29, 2008 at 12:28 PM Subject: levinson.m incompatibility levinson(rand(10,1),9) leads to an undetermined error with GNU Octave. here is a patch to current levinson.m that solves this problem. cheers, eric. ---

Re: [OctDev] resample.m does not resample correctly

2008-03-05 Thread Eric Chassande-Mottin
hi, I have finalized the new version of resample.m I proposed last week. the source is attached to this message. i have made the changes you suggested. in particular it includes several tests which can be performed with the "test" utility. do I have the green light for replacing the current resa

Re: [OctDev] OT spam

2008-03-05 Thread Eric Chassande-Mottin
> Hello. The amount of spam that comes through this list is absurd. This > is the only list of mine that receives that much spam. Can't we do > anything about it? :( agreed. on the top of that, I think it doesn't make sense to have this list separated from the other Octave lists. could this list b

Re: [OctDev] resample.m does not resample correctly

2008-03-14 Thread Eric Chassande-Mottin
I have received Paul Kienzle's agreement to change resample.m I don't have write access on this file on the SVN tree. could this be changed? eric. On Wed, Mar 5, 2008 at 4:22 PM, Eric Chassande-Mottin <[EMAIL PROTECTED]> wrote: > hi, > > I have finalized the new version

[OctDev] patch to textread.cc

2008-04-01 Thread Eric Chassande-Mottin
hi, with the following patch, textread.cc returns an empty matrix rather than an error when reading an empty file which is, I believe the expected behavior. cheers, eric. Index: textread.cc === --- textread.cc (revision 4843) +++ tex

[OctDev] shift of a fractional number of samples

2008-07-16 Thread Eric Chassande-Mottin
I have written a function ( http://www.nabble.com/file/p18490379/fracshift.m code attached, fracshift.m ) which performs the shift of a data vector (e.g., a time-series) by a fractional number of samples. this is useful in area such as antenna array processing and possibly others (processing of s

Re: [OctDev] shift of a fractional number of samples

2008-07-16 Thread Eric Chassande-Mottin
> Cute, and I can see the use of such a function for clock offset calculations in comms systems. I > typically use simpler narrwband approximations for this functionality as I > have to worry about how > to implement it on an ASIC. good to know that this work could be useful elsewhere! > The

Re: [OctDev] shift of a fractional number of samples

2008-07-17 Thread Eric Chassande-Mottin
fracshift is committed with the change you suggested. > I think it should be added, but I would like to know it's different > from "resampling". From > http://www.dspguru.com/info/faqs/multrate/resamp.htm the reference that I give in the source is a good starting point to understand the relat

[OctDev] laguerre polynomials

2008-07-30 Thread Eric Chassande-Mottin
I've written a routine which computes the Laguerre polynomials. It could be added to octaveForge? it is maybe redundant with a routine of the GSL. if it is worth it, I am not sure where it should be placed (specfun? misc?). e. http://www.nabble.com/file/p18730466/laguerre.m laguerre.m -- View

[OctDev] missing .m in octave-forge package signal in Debian

2009-03-17 Thread Eric Chassande-Mottin
hi, I have just noticed that not all functions in the SVN repository are available in signal-1.0.7 on my Debian box. there are functions (e.g., fracshift.m) that have been included 8 months ago and that are not part of the distribution. does that mean that the last release was before 8 months ag

[OctDev] misfunctioning of textread.cc

2009-04-30 Thread Eric Chassande-Mottin
hi, i have spotted a small misfunctioning of textread.cc when reading empty files. $ rm -f test.txt;touch test.txt $ octave -q octave:1> [a,b]=textread("test.txt","%f %f") a = [](0x0) error: element number 2 undefined in return list error: evaluating assignment expression near line 1, column 6

Re: [OctDev] fracshift and integer shifts

2012-05-29 Thread Eric Chassande-Mottin
#x27;s the best way to act here and I'm CC'ing the function author Eric Chassande-Mottin. Using a non-integer for shift value works whether x is column or vector. fracshift([1 0 0 0],1.5) ans = 0.12584 0.63632 0.63632 -0.21131 This is definetily inconsistent. fracshift's be