How to use Birnbaum-Saunders dist in SImulink
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
I have a data set from a process that is in a Birbaum-Saunders distribution. Using it in a set of tests in Matlab shows that it will produce the values I need for simulating that process correctly.
I am building this in Simulink, but am at a loss for how to actually use this non-normal distribution in the Simulink model. Can anyone tell me how to do this, or point me in the right direction?
0 comentarios
Respuestas (1)
patrick1704
el 17 de Jul. de 2022
Hi there,
if you are not required to fulfill special coding guidelines, the Matlab function block is always an option, with which you can directly include Matlab code: Include MATLAB code in models that generate embeddable C code - Simulink - MathWorks Deutschland
Otherwise, you can probably use uniformly distributed numbers (Generate uniformly distributed random numbers - Simulink - MathWorks Deutschland) and implement something like inverse transform sampling yourself (Inverse transform sampling - Wikipedia) to spread them according to the desired distribution.
Ver también
Categorías
Más información sobre Random Number Generation en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!