Re: removing discontinuities




"Michael O'Leary" <moonoleary@xxxxxxxxxxxxx> wrote in message
news:ef1ef93.1@xxxxxxxxxxxxxxxxxxx
> I'm not quite sure I understand. I thought I was using integer values
> for j.

ksi = eps: .01: lam(k);
for j = 1:100*lam(k)+1

you are only doing this for k = 1

This means lam(k) is going to be 0.8
This means that the array is going to be
[0.8, 1.6, 2.4 ...80]

in other words, it is [0.8:0.8:80]

which might cause eccentricities if you do not round them off to the nearest
integer as you want them... (using floor or ceil)

Can you tell me exactly what value of k and j you are looping through? As
Jos said, the equation itself is unreadable, so I am going to trust you on
the equation and detect any problems the for loop is causing :)

Cheers!
--
Vig


.



Relevant Pages

  • How can I speed up this for loop?
    ... I'm just trying to speed up this for loop: ... feeling it's the matrix multiplication that's causing the program to ... Prev by Date: ...
    (comp.soft-sys.matlab)
  • Re: processing a sequence
    ... (loop for sublist = (collect-sublist) ... return accum if not element = list.first ... if prev and element < prev ... James still didn?t show his Ruby one-liner that outperforms the Lisp ...
    (comp.lang.lisp)
  • Re: Process notification
    ... As you see from prev. ... posts there is no obsolute user mode solution on how ... and then immidiatly terminated - your "monitoring loop" may not detect it. ... Vladimir ...
    (microsoft.public.win32.programmer.kernel)
  • RE: Extreme beginner question on reading lines from a file.
    ... print FILEOUT "M98PPECK.SUBL1\n"; ... the 1st line is written into $prev. ... This code will fail if there's ... If it fails it returns false and the loop exits. ...
    (perl.beginners)
  • Re: occasional error message sent to root
    ... One part of the message processing is ... exactly what it is that is causing the loop in this case we can't ... the log -- ie. the first character may be different but the rest ...
    (freebsd-questions)