<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<p>Thanks a lot!<br>
</p>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri, sans-serif"><b>De:</b> users <users-bounces@lists.scilab.org> en nombre de Serge Steer <Serge.Steer@inria.fr><br>
<b>Enviado:</b> sábado, 25 de febrero de 2017 04:38 p.m.<br>
<b>Para:</b> users@lists.scilab.org<br>
<b>Asunto:</b> Re: [Scilab-users] Bode of discret time transfer function.</font>
<div> </div>
</div>
<div>
<div class="moz-cite-prefix">Le 25/02/2017 à 19:17, Pablo Fonovich a écrit :<br>
</div>
<blockquote type="cite">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Hi:</p>
<p>This is the first time i work with discrete time transfers functions and Scilab.</p>
<p>I want to use bode() for plotting the magnitud and phase response of the system, however, i don't understand how to set the frequencies to normalized values (-pi, pi).</p>
<p>This is what i'm doing:</p>
<p><br>
</p>
<div>s=poly(0,'s')<br>
H=(s^(-2400))/(1-0.5*s^(-2400))<br>
S=syslin('d',H)<br>
bode(S)</div>
<p><br>
</p>
<p>i get a warning that frequencies beyond nyquist rate are ignored and the resulting plot is attached.</p>
<p><img naturalheight="572" naturalwidth="610" tabindex="0" id="img472992" size="0" style="max-width: 99.9%; -moz-user-select: none;" aria-expanded="false" src="cid:part1.AF505552.9295B9D5@inria.fr"><br>
</p>
<p>In the help, it says that bode parameter could include fmin and fmax in herz, but isn't a discrete system response limited to normalized frequencies? And to transform the normalized frecuency to herz the sample rate must be used, but i don't know how to
 pass it to the system or something.</p>
</div>
</blockquote>
S=syslin(dt,H) defines a dynamical system sampled. dt beeing the sampling period in second.<br>
If you want the frequency uniis be in rd/s add "rad" as last input argument<br>
<blockquote type="cite">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Any hints would be appreciated.</p>
<p>Thanks<br>
</p>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset> <br>
<pre>_______________________________________________
users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:users@lists.scilab.org">users@lists.scilab.org</a>
<a class="moz-txt-link-freetext" href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a>
</pre>
</blockquote>
<p><br>
</p>
</div>
</div>
</div>
</body>
</html>