<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Le 14/09/2018 à 20:57, Claus Futtrup a
      écrit :<br>
    </div>
    <blockquote
      cite="mid:49ebf3dc-f34a-7664-f9ca-47beb7daa7a4@gmail.com"
      type="cite">
      <meta http-equiv="content-type" content="text/html;
        charset=windows-1252">
      <p>Dear Scilabers</p>
      <p>I have calculated an impulse response and wish to do an FFT to
        achieve the frequency response. I know what to expect. In the
        matlab forum someone asked the same question and was recommended
        to use freqz ... I wonder what would be the equivalent function
        in Scilab?</p>
      <span style="color:rgb(0,0,0);">https</span><span
        style="color:rgb(255,170,0);">:</span><span
        style="color:rgb(100,174,100);font-style:italic;">//www.mathworks.com/matlabcentral/answers/350350-how-to-plot-loudspeaker-frequency-response-from-its-impulse-response</span>
      <p>For example, to replicate the code snippet (second answer in
        above link), how to do this in Scilab?</p>
      <span style="color:rgb(0,0,0);">h</span> <span
        style="color:rgb(92,92,92);">=</span> <span
        style="color:rgb(50,185,185);">rand</span><span
        style="color:rgb(74,85,219);">(</span><span
        style="color:rgb(188,143,143);">1</span><span
        style="color:rgb(0,0,0);">,</span><span
        style="color:rgb(188,143,143);">64</span><span
        style="color:rgb(74,85,219);">)</span><span
        style="color:rgb(0,0,0);">;</span> <span
        style="color:rgb(100,174,100);font-style:italic;">// impulse
        response</span> (Matlab source code)<br>
      <span style="color:rgb(0,0,0);">fs</span> <span
        style="color:rgb(92,92,92);">=</span> <span
        style="color:rgb(188,143,143);">1000</span><span
        style="color:rgb(0,0,0);">;</span><br>
      <span style="color:rgb(0,0,0);">Nfft</span> <span
        style="color:rgb(92,92,92);">=</span> <span
        style="color:rgb(188,143,143);">128</span><span
        style="color:rgb(0,0,0);">;</span><br>
      <span style="color:rgb(74,85,219);">[</span><span
        style="color:rgb(0,0,0);">H</span><span
        style="color:rgb(0,0,0);">,</span><span
        style="color:rgb(0,0,0);">F</span><span
        style="color:rgb(74,85,219);">]</span> <span
        style="color:rgb(92,92,92);">=</span> <span
        style="color:rgb(0,0,0);">freqz</span><span
        style="color:rgb(74,85,219);">(</span><span
        style="color:rgb(0,0,0);">h</span><span
        style="color:rgb(0,0,0);">,</span><span
        style="color:rgb(188,143,143);">1</span><span
        style="color:rgb(0,0,0);">,</span><span
        style="color:rgb(0,0,0);">Nfft</span><span
        style="color:rgb(0,0,0);">,</span><span
        style="color:rgb(0,0,0);">fs</span><span
        style="color:rgb(74,85,219);">)</span><span
        style="color:rgb(0,0,0);">;</span><br>
    </blockquote>
    <br>
    Did you have a look around freq() or repfreq()?<br>
    <br>
    We have somewhat the equivalence <span class="fontstyle0">invfreqz(H,F,m,n,W) 
      <=>  </span><span class="fontstyle0">frfit(F*2*%pi, H, n,
      W) // Scilab<br>
      <br>
      So you may look for the reciprocal of Scilab's frfit()</span>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
    <br style=" font-style: normal; font-variant: normal; font-weight:
      normal; letter-spacing: normal; line-height: normal; orphans: 2;
      text-align: -webkit-auto; text-indent: 0px; text-transform: none;
      white-space: normal; widows: 2; word-spacing: 0px;
      -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">
    <style>
<!--
br
{
mso-data-placement:same-cell;
}
table
{
mso-displayed-decimal-separator:"\.";
mso-displayed-thousand-separator:"\, ";
}
tr
{
mso-height-source:auto;
mso-ruby-visibility:none;
}
td
{
border:.5pt solid windowtext;
}
.NormalTable{cellspacing:0;cellpadding:10;border-collapse:collapse;mso-table-layout-alt:fixed;border:none; mso-border-alt:solid windowtext .75pt;mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-border-insideh:.75pt solid windowtext;mso-border-insidev:.75pt solid windowtext}
.fontstyle0
{
        font-family:ArialMT;
        font-size:11pt;
        font-style:normal;
        font-weight:normal;
        color:rgb(0,0,0);
}
.fontstyle1
{
        font-size:12pt;
        font-style:normal;
        font-weight:normal;
        color:rgb(0,0,0);
}
-->
</style><br>
    HTH<br>
    Samuel<br>
    <br>
  </body>
</html>