[Scilab-users] Matlab to Scilab

Radovan Omorjan omorr at uns.ac.rs
Sun May 25 07:50:38 CEST 2014


Hello,

I just tried your code and it works for me. The plot did not crash 
Scilab. I had to change something - instead of using conv() I ised 
convol(). Previously I had to increase the stack size with 
stacksize('max'). One more thing, trapz() should be changed to inttrap()

I do not know if this is correct - just tried to see if this would work. 
(Scilab 5.5.0)

Regards,
Radovan

On 5/24/2014 10:03 PM, Claus Futtrup wrote:
> Hi there
>
> A colleague of mine cannot write Scilab code yet, so he writes in 
> Matlab and I convert. So far I've run into a couple of issues that I 
> don't know what to make of. Please help us. The .sce script file is 
> attached.
>
> 1) The "plot" which is commented out on line 41 crashes Scilab. I 
> wonder why - is it because I'm plotting 24000 data points?
>
> 2) At the end of the script (line 111) I get a memory allocation error 
> with "conv" ... please help on this one.
>
> P.S. My colleague is trying to generate IEC 268-1 noise ... later to 
> compress it and make IEC 268-5 (EN 60268-5) test signal for power 
> testing loudspeakers.
>
> /Claus
>
>
> ---
> This email is free from viruses and malware because avast! Antivirus 
> protection is active.
> http://www.avast.com
>
>
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users



---
U ovoj e-pošti nema virusa i zlonamjernih programa jer je aktivna avast! antivirusna zaštita.
http://www.avast.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20140525/e85d8113/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: plot2.gif
Type: image/gif
Size: 4782 bytes
Desc: not available
URL: <https://lists.scilab.org/pipermail/users/attachments/20140525/e85d8113/attachment.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: plot1.gif
Type: image/gif
Size: 4478 bytes
Desc: not available
URL: <https://lists.scilab.org/pipermail/users/attachments/20140525/e85d8113/attachment-0001.gif>


More information about the users mailing list