Thank you Ivar and Tim. Using append gave me a 3 fold improvement in speed 
and I'll look into the composite types. 

On Sunday, February 1, 2015 at 9:31:40 AM UTC-5, Christopher Fisher wrote:
>
> Hi all-
>
> I am trying to figure out a graceful way to store output from a model 
> simulation. Each simulated trial produces a single reaction time, a single 
> choice and a vector of visual fixations generated by a Markov chain. The 
> complicating factor is that the size of the vector of visual fixations 
> varies on each simulated trial and I would like to generate multiple 
> simulated trials. Is there a way to store these outputs in a data structure 
> that will be easy to access in other functions?
>
> A related issue is the dynamic nature of the vector size. I am currently 
> using vcat to add new values to the vector. Is there a more efficient 
> method?
>
> Thank you in advance for your help.
>

Reply via email to