[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Repeating an action many times with different random conditions
From: |
Jordi Gutiérrez Hermoso |
Subject: |
Re: Repeating an action many times with different random conditions |
Date: |
Thu, 2 Feb 2012 12:02:28 -0500 |
On 2 February 2012 11:47, <address@hidden> wrote:
> I'm wondering if Octave has a function to repeat a given statement many
> times with different random (or non-random) cases, and output the results to
> an array.
>
> Essentially what I'm looking for is something similar to the "replicate"
> function in R. Of course, it's possible to just use a for loop, but in my
> experience this is slow ... :-(
Does the following new chapter in the manual help?
http://www.gnu.org/software/octave/doc/interpreter/Vectorization-and-Faster-Code-Execution.html
I'm not sure what else to recommend without a more specific problem.
- Jordi G. H.