<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.3429" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=011095409-03122008><FONT face=Arial 
color=#0000ff size=2>In your example the first two arguments should be 
polynomial not a scalar vectors.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=011095409-03122008><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=011095409-03122008><FONT face=Arial 
color=#0000ff size=2>try this :</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=011095409-03122008><FONT face=Arial 
size=2><FONT face="Times New Roman" color=#0000ff size=3>After : h=L*firpm(60,[0 
2/(fs_in*L) 4/(fs_in*L) 0.5]*2,[1 1 0 0],[1 1]);</FONT></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=011095409-03122008><FONT face=Arial 
size=2><FONT face="Times New Roman" color=#0000ff 
size=3>hp=poly(h,'x','coeffs');</FONT></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=011095409-03122008><FONT face=Arial 
size=2><FONT face="Times New Roman" color=#0000ff 
size=3>1p=poly(1,'x','coeffs');</FONT></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=011095409-03122008><FONT 
color=#0000ff></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=011095409-03122008><FONT color=#0000ff>Then 
: x_ef=rtitr(hp,1p,x_e);<BR></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=011095409-03122008></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=011095409-03122008><FONT face=Arial 
color=#0000ff size=2><FONT face="Times New Roman" color=#000000 
size=3></FONT><BR> </DIV></FONT></SPAN><BR>
<DIV class=OutlookMessageHeader lang=fr dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>De :</B> Nick Othieno 
[mailto:nickothieno@gmail.com] <BR><B>Envoyé :</B> mercredi 3 décembre 2008 
07:14<BR><B>À :</B> users@lists.scilab.org<BR><B>Objet :</B> 
[scilab-Users] Help with rtitr error in Scilab<BR></FONT><BR></DIV>
<DIV></DIV>Hi guys,<BR><BR>I am trying to run the following code in 
scilab:<BR><BR><BR>L=3; M=2; fs_in=6; 
Ts_in=1/fs_in;<BR>t_in=[0:Ts_in:5];x_in=sin(2*%
<DIV 
class=gmail_quote>pi*t_in)+2*cos(4*%pi*t_in);<BR>getf("spfsr.sci");<BR>getf("firpm.sci");<BR>x_e=expander(x_in,L);<BR>t_cont=[0:0.01:5]; 
x_cont=sin(2*%pi*t_cont)+2*cos(4*%pi*t_cont);<BR>h=L*firpm(60,[0 2/(fs_in*L) 
4/(fs_in*L) 0.5]*2,[1 1 0 0],[1 1]);<BR>x_ef=rtitr(h,1,x_e);<BR><BR>but I get 
the following 
error:<BR><BR><BR>-->x_ef=rtitr(h,1,x_e);<BR>                           
!--error 60<BR>argument with incompatible dimensions <BR><BR><BR>The values in 
x_e are:<BR><BR>-->x_e<BR> x_e  
=<BR><BR><BR>         column  1 to 
14<BR><BR>    2.    0.    0.  
- 0.1339746    0.    0.  - 
0.1339746    0.    0.    
2.    0.    0.  - 1.8660254    
0.<BR><BR>         column 15 to 
28<BR><BR>    0.  - 1.8660254    
0.    0.    2.    
0.    0.  - 0.1339746    0.    
0.  - 0.1339746    0.    0.    
2.<BR><BR>         column 29 to 
42<BR><BR>    0.    0.  - 
1.8660254    0.    0.  - 
1.8660254    0.    0.    
2.    0.    0.  - 0.1339746    
0.    0.<BR><BR>         
column 43 to 56<BR><BR>  - 0.1339746    0.    
0.    2.    0.    0.  - 
1.8660254    0.    0.  - 
1.8660254    0.    0.    
2.    0.<BR><BR>         
column 57 to 69<BR><BR>    0.  - 0.1339746    
0.    0.  - 0.1339746    0.    
0.    2.    0.    0.  - 
1.8660254    0.    
0.<BR><BR>         column 70 to 
83<BR><BR>  - 1.8660254    0.    
0.    2.    0.    0.  - 
0.1339746    0.    0.  - 
0.1339746    0.    0.    
2.    0.<BR><BR>         
column 84 to 93<BR><BR>    0.  - 1.8660254    
0.    0.  - 1.8660254    0.    
0.    2.    0.    0. 
<BR><BR><BR><BR>and values in h are:<BR><BR>-->h<BR> h  
=<BR><BR><BR>         column 1 to 
8<BR><BR>  - 0.0000037  - 0.0000535  - 
0.0000966    0.0000195    
0.0003521    0.0005352  - 0.0000530  - 
0.0013496<BR><BR>         column  9 
to 16<BR><BR>  - 0.0018804    0.0001157    
0.0039041    0.0051475  - 0.0002160  - 0.0094187  
- 0.0119515    
0.0003552<BR><BR>         column 17 to 
24<BR><BR>    0.0200286    0.0247607  - 
0.0005242  - 0.0391450  - 0.0477507    
0.0007027    0.0736679    
0.0904745<BR><BR>         column 25 to 
32<BR><BR>  - 0.0008623  - 0.1452481  - 
0.1894378    0.0009731    
0.4053300    0.8221257    
0.9989871    
0.8221257<BR><BR>         column 33 to 
40<BR><BR>    0.4053300    0.0009731  - 
0.1894378  - 0.1452481  - 0.0008623    
0.0904745    0.0736679    
0.0007027<BR><BR>         column 41 to 
48<BR><BR>  - 0.0477507  - 0.0391450  - 
0.0005242    0.0247607    
0.0200286    0.0003552  - 0.0119515  - 
0.0094187<BR><BR>         column 49 to 
56<BR><BR>  - 0.0002160    0.0051475    
0.0039041    0.0001157  - 0.0018804  - 0.0013496  
- 0.0000530    
0.0005352<BR><BR>         column 57 to 
61<BR><BR>    0.0003521    0.0000195  - 
0.0000966  - 0.0000535  - 0.0000037    <BR><BR><BR>Does 
anyone have any idea as to why rtitr is giving me the 
error?<BR><BR><BR>-->x_ef=rtitr(h,1,x_e);<BR>                           
!--error 60<BR>argument with incompatible dimensions 
<BR><BR><BR><BR>Regards,<BR><FONT 
color=#888888><BR>Nick</FONT></DIV></BODY></HTML>