<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hello Federico,<br>
      <br>
      Le 22/05/2019 à 16:40, Federico Miyara a écrit :<br>
    </div>
    <blockquote
      cite="mid:d5814dca-8479-1987-88fb-1d5eb2bb073f@fceia.unr.edu.ar"
      type="cite">
      <meta http-equiv="content-type" content="text/html;
        charset=windows-1252">
      <br>
      <font face="Courier New">Dear all,<br>
        <br>
        I need to implement a 4096 point non-symmetric Hann window. The
        function window provides several types of symetric windows,
        including Hann.  <br>
        <br>
        I wonder if computing a 4097 point symmetric window and keeping
        the first 4096 yields what I'm looking for.<br>
      </font></blockquote>
    <br>
    It depends only on your criteria to make it asymetric.<br>
    <font face="Courier New"><br>
      --> window("hn",4)<br>
       ans  =<br>
         0.   0.75   0.75   0.<br>
      <br>
      <br>
      --> w = window("hn",5)<br>
       w  = <br>
         0.   0.5   1.   0.5   0.<br>
      <br>
      <br>
      --> w(1:4)<br>
       ans  =<br>
         0.   0.5   1.   0.5<br>
      <br>
    </font>Is this OK ? window() normalizes the maximum height, not the
    area. So trimming the raw result less than its half width keeps its
    max to 1. And there is no correction factor to apply to the area to
    keep it to 1, since it's not its original value.<br>
    <br>
    Samuel<br>
    <font face="Courier New"><br>
    </font>
  </body>
</html>