[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Vectorization of a random function
From: |
Max Görner |
Subject: |
Re: Vectorization of a random function |
Date: |
Wed, 27 Jan 2016 14:01:54 +0100 |
User-agent: |
KMail/5.0.2 (Linux/4.2.0-25-generic; KDE/5.15.0; x86_64; ; ) |
Hi,
as far as I see, you could use arrayfun. The line
g = arrayfun(@(x) TiempoMuerte_Cte(N,c), 1:ensayos);
should do the trick. Anyway, TiempoMuerte_Cte has to return a scalar for
this, otherwise you have to append '"UniformOutput", false'.
Good look,
Max Görner
--
Technische Universität Dresden
Institut für Allgemeine Psychologie und Methoden der Psychologie
01062 Dresden
Tel.: 0351 - 463 37899
PGP: https://wwwpub.zih.tu-dresden.de/~maxgoern/2FE6023F.asc
signature.asc
Description: This is a digitally signed message part.