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.