IIR filter

Discussion in 'Programmer's Corner' started by Cerkit, Jan 24, 2009.

  1. Cerkit

    Thread Starter Active Member

    Jan 4, 2009
    Ok. How can I convert a variable of type double to vector in Matlab? I need to use it in function filter but it only accepts type vector!!??
    Last edited: Jan 24, 2009
  2. Skeebopstop

    Active Member

    Jan 9, 2009
    I imagine a vector is just an object of multi-castable types, so you could populate a matlab vector with many doubles or floats or ints. So perhaps just something along the lines of

    Vector myVector ;

    myVector.add(myDouble) ;'

    I'm not horribly matlab savy, but just speak in general C++ terms here.