<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <div class="moz-cite-prefix">Hi there</div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">The 2D example from the help pages also
      crashes Scilab.<br>
    </div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">Maybe my Scilab installation is broken
      - the FFT part? I can't remember, but I think I installed the
      Intel Math Kernel with everything. My computer is a Lenovo T480
      with Intel Core i7 processor. I have the following installed:<br>
    </div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">C:\Program Files\scilab-6.1.0>dir /S
      /B fft*.*<br>
      C:\Program Files\scilab-6.1.0\bin\fftw<br>
      C:\Program Files\scilab-6.1.0\bin\fftw.dll<br>
      C:\Program Files\scilab-6.1.0\bin\fftw\fftw-readme.txt<br>
      C:\Program Files\scilab-6.1.0\modules\fftw<br>
      C:\Program Files\scilab-6.1.0\modules\fftw\etc\fftw.quit<br>
      C:\Program Files\scilab-6.1.0\modules\fftw\etc\fftw.start<br>
    </div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">Cheers,</div>
    <div class="moz-cite-prefix">Claus</div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">On 26-11-2020 19:19, Claus Futtrup
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:dc137d09-7d50-b60a-6a2e-950384d55e08@gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <p>Hi Scilabers</p>
      <p>I'm trying to understand how to use the FFT function in Scilab.
        I'm using v. 6.1.0 on a Windows 10 machine.</p>
      This crashes Scilab:
      <pre style="font-family:Monospaced;font-style:normal;font-size:14.0;"><span style="color:rgb(92,92,92);">y =</span> <span style="color:rgb(50,185,185);">linspace</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);">256,256</span><span style="color:rgb(0,0,0);"></span><span style="color:rgb(74,85,219);">)
x = fft(y)
</span>

BTW, the example in the online help (<a class="moz-txt-link-freetext" href="https://help.scilab.org/docs/6.1.0/en_US/fft.html" moz-do-not-send="true">https://help.scilab.org/docs/6.1.0/en_US/fft.html</a>) also crashes Scilab:</pre>
      <pre style="font-family:Monospaced;font-style:normal;font-size:14.0;"><span style="color:rgb(74,85,219);"></span>
<span style="color:rgb(74,85,219);"><span class="scilabid" style="font-style: normal; color: rgb(0, 0, 0);">sample_rate</span><span class="scilaboperator" style="font-style: normal; color: rgb(92, 92, 92);">=</span><span class="scilabnumber" style="font-style: normal; color: rgb(188, 143, 143);">1000</span><span class="scilabdefault" style="font-style: normal; color: rgb(0, 0, 0);">;</span>
<span class="scilabid" style="font-style: normal; color: rgb(0, 0, 0);">t</span> <span class="scilaboperator" style="font-style: normal; color: rgb(92, 92, 92);">=</span> <span class="scilabnumber" style="font-style: normal; color: rgb(188, 143, 143);">0</span><span class="scilabspecial" style="font-style: normal; color: rgb(255, 170, 0);">:</span><span class="scilabnumber" style="font-style: normal; color: rgb(188, 143, 143);">1</span><span class="scilaboperator" style="font-style: normal; color: rgb(92, 92, 92);">/</span><span class="scilabid" style="font-style: normal; color: rgb(0, 0, 0);">sample_rate</span><span class="scilabspecial" style="font-style: normal; color: rgb(255, 170, 0);">:</span><span class="scilabnumber" style="font-style: normal; color: rgb(188, 143, 143);">0.6</span><span class="scilabdefault" style="font-style: normal; color: rgb(0, 0, 0);">;</span>
<span class="scilabid" style="font-style: normal; color: rgb(0, 0, 0);">N</span><span class="scilaboperator" style="font-style: normal; color: rgb(92, 92, 92);">=</span><a class="scilabcommand" href="https://help.scilab.org/docs/6.1.0/en_US/size.html" style="color: rgb(50, 185, 185); text-decoration: underline; font-style: normal;" moz-do-not-send="true">size</a><span class="scilabopenclose" style="font-style: normal; color: rgb(74, 85, 219);">(</span><span class="scilabid" style="font-style: normal; color: rgb(0, 0, 0);">t</span><span class="scilabdefault" style="font-style: normal; color: rgb(0, 0, 0);">,</span><span class="scilabstring" style="font-style: normal; color: rgb(188, 143, 143);">'</span><span class="scilabstring" style="font-style: normal; color: rgb(188, 143, 143);">*</span><span class="scilabstring" style="font-style: normal; color: rgb(188, 143, 143);">'</span><span class="scilabopenclose" style="font-style: normal; color: rgb(74, 85, 219);">)</span><span class="scilabdefault" style="font-style: normal; color: rgb(0, 0, 0);">;</span> <span class="scilabcomment" style="font-style: italic; color: rgb(1, 168, 1);">//number of samples</span>
<span class="scilabid" style="font-style: normal; color: rgb(0, 0, 0);">s</span><span class="scilaboperator" style="font-style: normal; color: rgb(92, 92, 92);">=</span><a class="scilabcommand" href="https://help.scilab.org/docs/6.1.0/en_US/sin.html" style="color: rgb(50, 185, 185); text-decoration: underline; font-style: normal;" moz-do-not-send="true">sin</a><span class="scilabopenclose" style="font-style: normal; color: rgb(74, 85, 219);">(</span><span class="scilabnumber" style="font-style: normal; color: rgb(188, 143, 143);">2</span><span class="scilaboperator" style="font-style: normal; color: rgb(92, 92, 92);">*</span><span class="scilabconstants" style="font-style: normal; color: rgb(218, 112, 214);">%pi</span><span class="scilaboperator" style="font-style: normal; color: rgb(92, 92, 92);">*</span><span class="scilabnumber" style="font-style: normal; color: rgb(188, 143, 143);">50</span><span class="scilaboperator" style="font-style: normal; color: rgb(92, 92, 92);">*</span><span class="scilabid" style="font-style: normal; color: rgb(0, 0, 0);">t</span><span class="scilabopenclose" style="font-style: normal; color: rgb(74, 85, 219);">)</span><span class="scilaboperator" style="font-style: normal; color: rgb(92, 92, 92);">+</span><a class="scilabcommand" href="https://help.scilab.org/docs/6.1.0/en_US/sin.html" style="color: rgb(50, 185, 185); text-decoration: underline; font-style: normal;" moz-do-not-send="true">sin</a><span class="scilabopenclose" style="font-style: normal; color: rgb(74, 85, 219);">(</span><span class="scilabnumber" style="font-style: normal; color: rgb(188, 143, 143);">2</span><span class="scilaboperator" style="font-style: normal; color: rgb(92, 92, 92);">*</span><span class="scilabconstants" style="font-style: normal; color: rgb(218, 112, 214);">%pi</span><span class="scilaboperator" style="font-style: normal; color: rgb(92, 92, 92);">*</span><span class="scilabnumber" style="font-style: normal; color: rgb(188, 143, 143);">70</span><span class="scilaboperator" style="font-style: normal; color: rgb(92, 92, 92);">*</span><span class="scilabid" style="font-style: normal; color: rgb(0, 0, 0);">t</span><span class="scilaboperator" style="font-style: normal; color: rgb(92, 92, 92);">+</span><span class="scilabconstants" style="font-style: normal; color: rgb(218, 112, 214);">%pi</span><span class="scilaboperator" style="font-style: normal; color: rgb(92, 92, 92);">/</span><span class="scilabnumber" style="font-style: normal; color: rgb(188, 143, 143);">4</span><span class="scilabopenclose" style="font-style: normal; color: rgb(74, 85, 219);">)</span><span class="scilaboperator" style="font-style: normal; color: rgb(92, 92, 92);">+</span><a class="scilabcommand" href="https://help.scilab.org/docs/6.1.0/en_US/grand.html" style="color: rgb(50, 185, 185); text-decoration: underline; font-style: normal;" moz-do-not-send="true">grand</a><span class="scilabopenclose" style="font-style: normal; color: rgb(74, 85, 219);">(</span><span class="scilabnumber" style="font-style: normal; color: rgb(188, 143, 143);">1</span><span class="scilabdefault" style="font-style: normal; color: rgb(0, 0, 0);">,</span><span class="scilabid" style="font-style: normal; color: rgb(0, 0, 0);">N</span><span class="scilabdefault" style="font-style: normal; color: rgb(0, 0, 0);">,</span><span class="scilabstring" style="font-style: normal; color: rgb(188, 143, 143);">'</span><span class="scilabstring" style="font-style: normal; color: rgb(188, 143, 143);">nor</span><span class="scilabstring" style="font-style: normal; color: rgb(188, 143, 143);">'</span><span class="scilabdefault" style="font-style: normal; color: rgb(0, 0, 0);">,</span><span class="scilabnumber" style="font-style: normal; color: rgb(188, 143, 143);">0</span><span class="scilabdefault" style="font-style: normal; color: rgb(0, 0, 0);">,</span><span class="scilabnumber" style="font-style: normal; color: rgb(188, 143, 143);">1</span><span class="scilabopenclose" style="font-style: normal; color: rgb(74, 85, 219);">)</span><span class="scilabdefault" style="font-style: normal; color: rgb(0, 0, 0);">;</span>

<span class="scilabid" style="font-style: normal; color: rgb(0, 0, 0);">y</span><span class="scilaboperator" style="font-style: normal; color: rgb(92, 92, 92);">=</span><a class="scilabcommand" href="https://help.scilab.org/docs/6.1.0/en_US/fft.html" style="color: rgb(50, 185, 185); text-decoration: underline; font-style: normal;" moz-do-not-send="true">fft</a><span class="scilabopenclose" style="font-style: normal; color: rgb(74, 85, 219);">(</span><span class="scilabid" style="font-style: normal; color: rgb(0, 0, 0);">s</span><span class="scilabopenclose" style="font-style: normal; color: rgb(74, 85, 219);">)</span><span class="scilabdefault" style="font-style: normal; color: rgb(0, 0, 0);">;</span>

</span>
Cheers,
Claus</pre>
      <pre style="font-family:Monospaced;font-style:normal;font-size:14.0;"><span style="color:rgb(74,85,219);"></span></pre>
    </blockquote>
    <p><br>
    </p>
  </body>
</html>