[scilab-Users] Reg :: Termination of this script

Sumit Adhikari sumit.adhikari at gmail.com
Mon Nov 30 06:04:25 CET 2009


It is not just slow, it is too slow!. Multi rates are always being problem
with scilab. So many features added but multi rates are still
untouched in scilab. Without multi rates signal processing toolbox is simply
incomplete. Is there any plan for multi rates in future.
Regards,
Sumit

P.S: How do I configure my scilab for a particular run to access minimum
resources possible and to provide fastest output ?
Even when I use it from within a function, it doesn't give me speed
advantage, like as follows :


clear all ;
funcprot(0);

stacksize('max');

function cic_resp(M,Npoints,SBW)
   z = poly(0,'z');

   Hn = syslin('c',(z^M - 1.0), (z^M));
   Hcic_num = Hn*Hn*Hn;

   Hd = syslin('c',(z- 1.0), (z));
   Hcic_den = Hd*Hd*Hd ;

   Hcic = (Hcic_num / Hcic_den) ;


   [hzm,fr]=frmag(Hcic,Npoints);
   frm = fr*SBW;



xbasc(0);xset('window',0);plot(frm(1:Npoints),20.0*log10(hzm(1:Npoints)),"red");
mtlb_grid("on");
   //xbasc(1);xset('window',1);plzr(Hcic); mtlb_grid("on");

endfunction

// Calling cic_resp
   cic_resp(1024,1024*1024,1024*1024);














On Thu, Nov 26, 2009 at 6:13 PM, Collette yann <yann.collette at scilab.org>wrote:

> Works fine for me. It's just long ...
> Tested on scilab master.
>
> YC
>
> Sumit Adhikari a écrit :
>
>  Following script is not terminating. It is stuck at line :
>>
>> Hcic = Hcic_num / Hcic_den ;
>>
>>
>> SCRIPT :
>> -----------
>>
>>
>> clear all ;
>>
>> stacksize('max');
>>
>> z = poly(0,'z');
>>
>> N = 32 ;
>> M = 3    ;
>>
>>
>> M = 1024 ;
>> Hn = syslin('c',(z^M - 1.0), (z^M));
>> Hcic_num = Hn*Hn*Hn;
>>
>> Hd = syslin('c',(z- 1.0), (z));
>> Hcic_den = Hd*Hd*Hd ;
>>
>> Hcic = Hcic_num / Hcic_den ;
>>
>>
>> Npoints = 1024*1024;
>> [hzm,fr]=frmag(Hcic,Npoints);
>> SBW = 1024*1024;
>> frm = fr*SBW;
>>
>>
>> //xbasc(0);xset('window',0);
>> plot(log10(frm(2:Npoints)),20*log10(hzm(2:Npoints)),"red");
>> mtlb_grid("on");
>> xbasc(0);xset('window',0);plot(frm(1:Npoints),hzm(1:Npoints),"red");
>> mtlb_grid("on");
>> xbasc(1);xset('window',1);plzr(H); mtlb_grid("on");
>>
>>
>>
>> --
>>
>> --------------------------------------------
>> Sumit Adhikari
>> System Design Engineer
>> austriamicrosystems AG
>> Business Unit : Automotive
>> Mob : 00-91-9885271710/00-91-9000161710
>>
>
>


-- 

--------------------------------------------
Sumit Adhikari
System Design Engineer
austriamicrosystems AG
Business Unit : Automotive
Mob : 00-91-9885271710/00-91-9000161710
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20091130/5b1d33c6/attachment.htm>


More information about the users mailing list