Azzera filtri
Azzera filtri

randsrc() in SimEvents simulink

1 visualizzazione (ultimi 30 giorni)
I would like to get a random number with different probabilities in a Simevents block but when I use it it says: "Function 'randsrc' not supported for code generation."
Is there a similar function as randsrc but for SimEvents blocks?
Thank you in advance.

Risposta accettata

Sean de Wolski
Sean de Wolski il 30 Mar 2021
Put this before it:
coder.extrinsic('randsrc')

Più risposte (0)

Categorie

Scopri di più su Discrete-Event Simulation in Help Center e File Exchange

Prodotti


Release

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by