<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>I was implementing a digital reverberation for a class, and i wanted to show that it was indeed a comb filter.. Thanks all of you! you helped me a lot.<br>
</p>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_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 Tim Wescott <tim@wescottdesign.com><br>
<b>Enviado:</b> sábado, 25 de febrero de 2017 06:57 p.m.<br>
<b>Para:</b> Users mailing list for Scilab<br>
<b>Asunto:</b> Re: [Scilab-users] Bode of discret time transfer function.</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">Not sure what you're trying to achieve, but if you want a plot of the<br>
linear amplitude response on a linear frequency line, use Horner:<br>
<br>
H = syslin('d', (%z - 0.9) / (%z - 99));<br>
th = %pi * (-1:0.01:1)';<br>
clf; plot2d(th, abs(horner(H, exp(%i * th)))); xgrid(2)<br>
<br>
On Sat, 2017-02-25 at 18:17 +0000, Pablo Fonovich wrote:<br>
> Hi:<br>
> This is the first time i work with discrete time transfers functions<br>
> and Scilab.<br>
> I want to use bode() for plotting the magnitud and phase response of<br>
> the system, however, i don't understand how to set the frequencies to<br>
> normalized values (-pi, pi).<br>
> This is what i'm doing:<br>
> <br>
> s=poly(0,'s')<br>
> H=(s^(-2400))/(1-0.5*s^(-2400))<br>
> S=syslin('d',H)<br>
> bode(S)<br>
> <br>
> i get a warning that frequencies beyond nyquist rate are ignored and<br>
> the resulting plot is attached.<br>
> <br>
> In the help, it says that bode parameter could include fmin and fmax<br>
> in herz, but isn't a discrete system response limited to normalized<br>
> frequencies? And to transform the normalized frecuency to herz the<br>
> sample rate must be used, but i don't know how to pass it to the<br>
> system or something.<br>
> <br>
> Any hints would be appreciated.<br>
> Thanks<br>
> _______________________________________________<br>
> users mailing list<br>
> users@lists.scilab.org<br>
> <a href="http://lists.scilab.org/mailman/listinfo/users" id="LPlnk750764" previewremoved="true">
http://lists.scilab.org/mailman/listinfo/users</a>
<div id="LPBorder_GT_14883923053250.850207905900854" style="margin-bottom: 20px; overflow: auto; width: 100%; text-indent: 0px;">
<table id="LPContainer_14883923053150.6474854957393054" style="width: 90%; background-color: rgb(255, 255, 255); position: relative; overflow: auto; padding-top: 20px; padding-bottom: 20px; margin-top: 20px; border-top: 1px dotted rgb(200, 200, 200); border-bottom: 1px dotted rgb(200, 200, 200);" cellspacing="0">
<tbody>
<tr style="border-spacing: 0px;" valign="top">
<td id="TextCell_14883923053160.18623331078633665" style="vertical-align: top; position: relative; padding: 0px; display: table-cell;" colspan="2">
<div id="LPRemovePreviewContainer_14883923053170.643005010108201"></div>
<div id="LPTitle_14883923053170.17719606379501918" style="top: 0px; color: rgb(0, 114, 57); font-weight: 400; font-size: 21px; font-family: "wf_segoe-ui_light","Segoe UI Light","Segoe WP Light","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; line-height: 21px;">
<a id="LPUrlAnchor_14883923053190.4420521741036685" style="text-decoration: none;" href="http://lists.scilab.org/mailman/listinfo/users" target="_blank">users Info Page - Scilab</a></div>
<div id="LPMetadata_14883923053220.9531005681238073" style="margin: 10px 0px 16px; color: rgb(102, 102, 102); font-weight: 400; font-family: "wf_segoe-ui_normal","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; font-size: 14px; line-height: 14px;">
lists.scilab.org</div>
<div id="LPDescription_14883923053240.016736350316302384" style="display: block; color: rgb(102, 102, 102); font-weight: 400; font-family: "wf_segoe-ui_normal","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; font-size: 14px; line-height: 20px; max-height: 100px; overflow: hidden;">
The place to ask (and answer) questions on using Scilab. To see the collection of prior postings to the list, visit the users archives.</div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
-- <br>
<br>
Tim Wescott<br>
<a href="http://www.wescottdesign.com" id="LPlnk899314" previewremoved="true">www.wescottdesign.com</a>
<div id="LPBorder_GT_14883923050770.5008280452880187" style="margin-bottom: 20px; overflow: auto; width: 100%; text-indent: 0px;">
<table id="LPContainer_14883923050730.4208063122857508" style="width: 90%; background-color: rgb(255, 255, 255); position: relative; overflow: auto; padding-top: 20px; padding-bottom: 20px; margin-top: 20px; border-top: 1px dotted rgb(200, 200, 200); border-bottom: 1px dotted rgb(200, 200, 200);" cellspacing="0">
<tbody>
<tr style="border-spacing: 0px;" valign="top">
<td id="TextCell_14883923050740.8243018524912178" style="vertical-align: top; position: relative; padding: 0px; display: table-cell;" colspan="2">
<div id="LPRemovePreviewContainer_14883923050740.7209805731044917"></div>
<div id="LPTitle_14883923050750.22874203744694444" style="top: 0px; color: rgb(0, 114, 57); font-weight: 400; font-size: 21px; font-family: "wf_segoe-ui_light","Segoe UI Light","Segoe WP Light","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; line-height: 21px;">
<a id="LPUrlAnchor_14883923050750.03879072424943464" style="text-decoration: none;" href="http://www.wescottdesign.com/" target="_blank">Wescott Design Services</a></div>
<div id="LPMetadata_14883923050760.5943253663090983" style="margin: 10px 0px 16px; color: rgb(102, 102, 102); font-weight: 400; font-family: "wf_segoe-ui_normal","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; font-size: 14px; line-height: 14px;">
www.wescottdesign.com</div>
<div id="LPDescription_14883923050770.5785289133394146" style="display: block; color: rgb(102, 102, 102); font-weight: 400; font-family: "wf_segoe-ui_normal","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; font-size: 14px; line-height: 20px; max-height: 100px; overflow: hidden;">
Wescott Design Services Located in the foothills of the northern Oregon Cascades, Wescott Design Services is ready to use its proven expertise in systems design ...</div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
Control & Communications systems, circuit & software design.<br>
Phone: 503.631.7815<br>
Cell: 503.349.8432<br>
<br>
<br>
<br>
_______________________________________________<br>
users mailing list<br>
users@lists.scilab.org<br>
<a href="http://lists.scilab.org/mailman/listinfo/users" id="LPlnk540646" previewremoved="true">http://lists.scilab.org/mailman/listinfo/users</a>
<div id="LPBorder_GT_14883923643190.15590546514108117" style="margin-bottom: 20px; overflow: auto; width: 100%; text-indent: 0px;">
<table id="LPContainer_14883923643160.04400252466640997" style="width: 90%; background-color: rgb(255, 255, 255); position: relative; overflow: auto; padding-top: 20px; padding-bottom: 20px; margin-top: 20px; border-top: 1px dotted rgb(200, 200, 200); border-bottom: 1px dotted rgb(200, 200, 200);" cellspacing="0">
<tbody>
<tr style="border-spacing: 0px;" valign="top">
<td id="TextCell_14883923643170.1535352930961924" style="vertical-align: top; position: relative; padding: 0px; display: table-cell;" colspan="2">
<div id="LPRemovePreviewContainer_14883923643180.9176489517874694"></div>
<div id="LPTitle_14883923643180.06495026764392497" style="top: 0px; color: rgb(0, 114, 57); font-weight: 400; font-size: 21px; font-family: "wf_segoe-ui_light","Segoe UI Light","Segoe WP Light","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; line-height: 21px;">
<a id="LPUrlAnchor_14883923643180.5666190811621388" style="text-decoration: none;" href="http://lists.scilab.org/mailman/listinfo/users" target="_blank">users Info Page - Scilab</a></div>
<div id="LPMetadata_14883923643180.804839305737583" style="margin: 10px 0px 16px; color: rgb(102, 102, 102); font-weight: 400; font-family: "wf_segoe-ui_normal","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; font-size: 14px; line-height: 14px;">
lists.scilab.org</div>
<div id="LPDescription_14883923643190.517957197197338" style="display: block; color: rgb(102, 102, 102); font-weight: 400; font-family: "wf_segoe-ui_normal","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; font-size: 14px; line-height: 20px; max-height: 100px; overflow: hidden;">
The place to ask (and answer) questions on using Scilab. To see the collection of prior postings to the list, visit the users archives.</div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
</div>
</span></font></div>
</div>
</body>
</html>