views:

26

answers:

0

Does anyone know the correct syntax to resize a ColumnVector in a compiled .Oct function written for Octave? The ColumnVector will typically be 10 to 50 elements in length and will be passed to a feval call in a loop. After evaluation, in the next loop iteration, the ColumnVector will need to be resized, filled with new data and again passed to feval. The "old" data in the ColumnVector does not need to be retained. I have searched the web and found some references to a method - ColumnVector::resize (octave_idx_type) - but I don't know if this is what I need, and if it is what I need I don't know the correct syntax to use it.