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
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
> 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
> 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
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
@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
## @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
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,
> 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
> 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
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
--
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
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,
> 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
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
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
> > 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
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.
---
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
> 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
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
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
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
> 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
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
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
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
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
#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
29 matches
Mail list logo