- If m = 5: On average, 1 entity arrives every 5 time units.
 - If m = 1: On average, 1 entity arrives every 1 time unit (faster arrivals).
 - If m = 0.5: On average, 1 entity arrives every 0.5 time units (very fast arrivals).
 
I change the arrival time in the entity generator but the scope for entities departured stay the same (simulink)
    6 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    john
 el 19 de En. de 2025
  
    
    
    
    
    Respondida: Pratyush Swain
      
 el 20 de En. de 2025
            In the entity generator block, I have changed the source to matlab action and in the insert pattern I have put exponential. I am assuming by setting the mean to 5 this means that 5 entities arrive in each time unit. In the statistics I have enabled the number of departed entities and connected it with a scope. I change the mean from 5 to 0.5 or 1 or whatever and the scope still stays the same. Is this some bug or I am doing something wrong? I tested this both on online simulink and on my downloaded matlab and the result is the same.
0 comentarios
Respuesta aceptada
  Pratyush Swain
      
 el 20 de En. de 2025
        Hi John,
The mean parameter of the exponential distribution affects the inter-arrival time of entities, not the number of entities arriving per unit time.This means when the set a pattern for exponential distribution with mean = 5, on average, entity will arrive every 5 time units.
Similarly,
For more information on event action and random number generation, please refer to https://www.mathworks.com/help/simevents/ug/event-action-languages.html 
Hope this helps.
0 comentarios
Más respuestas (0)
Ver también
Categorías
				Más información sobre Subsystems 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!