Re: [Scilab-users] non-symmetric windows

2019-05-22 Thread Federico Miyara
Samuel, Thank you. I need it to be periodic without repeating the 0, so I think it is OK. When seeing it with N=4 it looks rather rough (actually, both versions do), but it improves for instance with N=4096) Anyway, the motivation is to use it for overlap-add. For instance: N = 8 q = wind

Re: [Scilab-users] non-symmetric windows

2019-05-22 Thread Samuel Gougeon
Hello Federico, Le 22/05/2019 à 16:40, Federico Miyara a écrit : Dear all, I need to implement a 4096 point non-symmetric Hann window. The function window provides several types of symetric windows, including Hann. I wonder if computing a 4097 point symmetric window and keeping the first

Re: [Scilab-users] unexpected result

2019-05-22 Thread Stéphane Mottelet
Hello Paul, B(i-1:$,1) in a rhs is evaluated as a temporary 6x1 vector when passed as an argument to find() and any reference w.r.t. B is of course disgarded. The obtained result is the expected result. S. Le 22/05/2019 à 09:51, Carrico, Paul a écrit : Hi All, In the following code, I was

[Scilab-users] non-symmetric windows

2019-05-22 Thread Federico Miyara
Dear all, I need to implement a 4096 point non-symmetric Hann window. The function window provides several types of symetric windows, including Hann. I wonder if computing a 4097 point symmetric window and keeping the first 4096 yields what I'm looking for. Thanks. Federico Miyara ___

[Scilab-users] unexpected result

2019-05-22 Thread Carrico, Paul
Hi All, In the following code, I was thinking that the provided index was the one on the "global" matrix, but I was wrong :) (I guess a copy is performed first in order to be more efficient and to speed-up the calculation) Paul n = 10; B = ones(n,1); i = 6; B(i,1)=0.55; a1 = find(B(:,1) < 1);