<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Hi,<br>
    <br>
    Which version of Scilab do you use? which OS?<br>
    <br>
    Do not hesitate to report a bug: <a class="moz-txt-link-freetext" href="http://bugzilla.scilab.org/">http://bugzilla.scilab.org/</a><br>
    <br>
    Regards,<br>
    Vincent<br>
    <br>
    Le 17/01/11 18:54, Dean Parsons a écrit :
    <blockquote cite="mid:673016EEE3AE460DBE4981A45C7E3E45@optiplex745"
      type="cite">
      <meta content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      <meta name="GENERATOR" content="MSHTML 8.00.6001.18999">
      <style></style>
      <div><strong><font size="4">Is Scilab's remez function broken?
            When I try to use it it always returns an empty matrix [ ].</font></strong></div>
      <div><strong></strong> </div>
      <div><strong><font size="4">For example:</font></strong></div>
      <div><strong></strong> </div>
      <div><strong><font size="4"><font face="Courier New">-->nc =
              21;<br>
               <br>
              -->ngrid=10240;<br>
               <br>
              -->fg = linspace(0,0.22,ngrid/2);<br>
               <br>
              -->fg = [fg linspace(0.25,0.5,ngrid/2)];<br>
               <br>
              -->x = fg(1:ngrid/2)/128;<br>
               <br>
              -->ds(1:ngrid/2)=ones(1:ngrid/2);<br>
               <br>
              -->ds(ngrid/2+1:ngrid)=zeros(1:ngrid/2);<br>
               <br>
              -->wt=ones(fg);<br>
               <br>
              -->an=remez(nc,fg,ds,wt)<br>
               an  =<br>
               <br>
                   []<br>
            </font> </font></strong></div>
      <div><strong><font size="4">Dean Parsons</font></strong></div>
    </blockquote>
    <br>
  </body>
</html>