Hello, I want to do IIR filtering in Scilab, but can't really figure out how it all works. The Matlab code for what I want to do would look something like this: x = some signal... B = [1 2 3]; A = [4 5 6]; y = filter(B,A,x); Now, that's quite simple, but how do I do the same thing in Scilab? It looks like I should be using flts(), but I can't really figure out how to translate my coefficient vectors A & B into whatever formatting flts() expects. Thanks, Jesper

# Anybody using Scilab?

Thus spake JBK:> Hello, > > I want to do IIR filtering in Scilab, but can't really figure out how it all > works. The Matlab code for what I want to do would look something like this: > > x = some signal... > B = [1 2 3]; > A = [4 5 6]; > y = filter(B,A,x); > > Now, that's quite simple, but how do I do the same thing in Scilab? It looks > like I should be using flts(), but I can't really figure out how to > translate my coefficient vectors A & B into whatever formatting flts() > expects.This may not help you at all... but if the reason you're using Scilab is because it's a free simulation package, you could try octave (www.octave.org) -- it is also a free simulation package, but it is largely code compatible with MatLab. Virtually all the (albeit fairly basic I imagine) simulations I've written in MatLab run without changes in octave. Your code above would certainly work. I haven't tried the windows version, but there certainly is one mentioned on the downloads page. Might be completely useless to you if you're set on using SciLab, but I figured it couldn't hurt! Cheers, Al

> This may not help you at all... but if the reason you're using Scilab is > because it's a free simulation package, you could try octave > (www.octave.org) -- it is also a free simulation package, but it is > largely code compatible with MatLab. Virtually all the (albeit fairly > basic I imagine) simulations I've written in MatLab run without changes > in octave. Your code above would certainly work. > > I haven't tried the windows version, but there certainly is one > mentioned on the downloads page. > > Might be completely useless to you if you're set on using SciLab, but I > figured it couldn't hurt! > > Cheers, > > AlAs you've already guessed the only reason I use Scilab is that it is free. I would definitely prefer Matlab if it hadn't been for the ridiculous price. I know that Octave is more Matlab-compatible, but the signal-processing toolbox in Scilab is far more extensive than the one in Octave. Thanks anyway, Jesper

Maybe 'frmag' will help somehow? "JBK" <jesper.kristensen@virginNOSPAM.net> wrote in message news:4jbajb.m5d.ln@172.16.100.88...> > This may not help you at all... but if the reason you're using Scilab is > > because it's a free simulation package, you could try octave > > (www.octave.org) -- it is also a free simulation package, but it is > > largely code compatible with MatLab. Virtually all the (albeit fairly > > basic I imagine) simulations I've written in MatLab run without changes > > in octave. Your code above would certainly work. > > > > I haven't tried the windows version, but there certainly is one > > mentioned on the downloads page. > > > > Might be completely useless to you if you're set on using SciLab, but I > > figured it couldn't hurt! > > > > Cheers, > > > > Al > > As you've already guessed the only reason I use Scilab is that it is free.I> would definitely prefer Matlab if it hadn't been for the ridiculous price.I> know that Octave is more Matlab-compatible, but the signal-processing > toolbox in Scilab is far more extensive than the one in Octave. > > Thanks anyway, > Jesper > >

Hi Jesper,> I want to do IIR filtering in ScilabI _think_ you're looking for rtitr() (I've never tried it so YMMV). HTH, Rick Armstrong (reply address is bogus)

JBK wrote:> > As you've already guessed the only reason I use Scilab is that it is free. I > would definitely prefer Matlab if it hadn't been for the ridiculous price. I > know that Octave is more Matlab-compatible, but the signal-processing > toolbox in Scilab is far more extensive than the one in Octave. >The Matlab student price is very reasonable and their policy for qualifying as a student is too. (At least it used to be.) Bob -- "Things should be described as simply as possible, but no simpler." A. Einstein

> The Matlab student price is very reasonable and their policy > for qualifying as a student is too. (At least it used to > be.)How about not being a student at all? And can a student license be used for commercial use as well? /Jesper

no, in the student license agreement it explicity says "non-commercial" JBK wrote:>>The Matlab student price is very reasonable and their policy >>for qualifying as a student is too. (At least it used to >>be.) > > > How about not being a student at all? > And can a student license be used for commercial use as well? > > /Jesper > >

there's a dedicated newsgroup comp.soft.sys.math.scilab you should try to ask there good luck! "JBK" <jesper.kristensen@virginNOSPAM.net> ha scritto nel messaggio news:973ajb.o1e.ln@172.16.100.88...> Hello, > > I want to do IIR filtering in Scilab, but can't really figure out how itall> works. The Matlab code for what I want to do would look something likethis:> > x = some signal... > B = [1 2 3]; > A = [4 5 6]; > y = filter(B,A,x); > > Now, that's quite simple, but how do I do the same thing in Scilab? Itlooks> like I should be using flts(), but I can't really figure out how to > translate my coefficient vectors A & B into whatever formatting flts() > expects. > > Thanks, > Jesper > >

You might also look at O-Matrix, (http://www.omatrix.com). It's not free, but it's quite inexpensive and provides support and other commercial benefits. "A. S. Budden" <newsreader.mail@NOSPAM.southparade.vispa.com> wrote in message news:20030905141247.GA29148@zakalwe...> Thus spake JBK: > > Hello, > > > > I want to do IIR filtering in Scilab, but can't really figure out how itall> > works. The Matlab code for what I want to do would look something likethis:> > > > x = some signal... > > B = [1 2 3]; > > A = [4 5 6]; > > y = filter(B,A,x); > > > > Now, that's quite simple, but how do I do the same thing in Scilab? Itlooks> > like I should be using flts(), but I can't really figure out how to > > translate my coefficient vectors A & B into whatever formatting flts() > > expects. > > This may not help you at all... but if the reason you're using Scilab is > because it's a free simulation package, you could try octave > (www.octave.org) -- it is also a free simulation package, but it is > largely code compatible with MatLab. Virtually all the (albeit fairly > basic I imagine) simulations I've written in MatLab run without changes > in octave. Your code above would certainly work. > > I haven't tried the windows version, but there certainly is one > mentioned on the downloads page. > > Might be completely useless to you if you're set on using SciLab, but I > figured it couldn't hurt! > > Cheers, > > Al