[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: trying to optimize my octave program
From: |
Tim Rueth |
Subject: |
RE: trying to optimize my octave program |
Date: |
Fri, 19 Mar 2010 08:59:46 -0700 |
> I suppose you understand that this is useless unless you show
> also what analyze does. Is there a good reason why sig, ong,
> short etc. are global variables rather than function parameters?
Analyze() operates on a number of global vectors and creates several new
global vectors, primarily based on the iteration vars of the for loops. I
haven't included it yet cuz it's hard to simplify to a reasonable length for
this forum. I'm happy to share it with those interested. First, maybe I'll
see if I can implement Judd's ndgrid suggestion.
The primary reason why I have so many global vars is that analyze() and
another function have lots of inputs and/or outputs, and calling the
function would be cumbersome otherwise, so it's just easier to make them all
global. I'm open to hearing any cautions regarding this.
--Tim
- Re: trying to optimize my octave program, (continued)
- Re: trying to optimize my octave program, Jordi GutiƩrrez Hermoso, 2010/03/18
- Re: trying to optimize my octave program, Jaroslav Hajek, 2010/03/18
- RE: trying to optimize my octave program, Tim Rueth, 2010/03/18
- Re: trying to optimize my octave program, Judd Storrs, 2010/03/18
- Re: trying to optimize my octave program, Judd Storrs, 2010/03/18
- RE: trying to optimize my octave program, Tim Rueth, 2010/03/19
- Re: trying to optimize my octave program, Judd Storrs, 2010/03/19
- RE: trying to optimize my octave program, Tim Rueth, 2010/03/21
- Re: trying to optimize my octave program, Jaroslav Hajek, 2010/03/19
- Re: trying to optimize my octave program, Jaroslav Hajek, 2010/03/19
- RE: trying to optimize my octave program,
Tim Rueth <=