Event base simulation in matlab
Ältere Kommentare anzeigen
Hi, I don't know how to do event based simulation in matlab. Just need a start for it, this question is a start part of my bigger task.
i have this,
arrival_departure_frequency =
0.0000 5.9489 0
0.0000 6.6353 0
0.0001 6.9292 0
0.0001 6.9361 0
0.0001 7.2979 0
0.0001 7.7989 0
0.0002 7.9419 0
0.0002 8.8358 0
0.0002 8.8383 0
0.0002 9.0600 0
First column is my event_arrivals and the 2nd column is event_departure. I want to change the value of third column from 0 to 1 when the simulation is in between arrival time and the departure time.
Once the event_departure arrives it again back set to O. Thank you so much.
27 Kommentare
José-Luis
am 11 Jun. 2014
I am not sure I follow. What are the values that trigger the change?
Aftab Ahmed Khan
am 11 Jun. 2014
Bearbeitet: Aftab Ahmed Khan
am 11 Jun. 2014
José-Luis
am 11 Jun. 2014
Will trigger a change depending on what? What are the conditions?
Aftab Ahmed Khan
am 11 Jun. 2014
José-Luis
am 11 Jun. 2014
Ok, but what are the conditions?
if first_col = what then third_column what?
if second_col = what then third_column what?
Aftab Ahmed Khan
am 11 Jun. 2014
Aftab Ahmed Khan
am 11 Jun. 2014
José-Luis
am 11 Jun. 2014
And where do you get now_time from?
Aftab Ahmed Khan
am 11 Jun. 2014
Aftab Ahmed Khan
am 11 Jun. 2014
José-Luis
am 11 Jun. 2014
I am sorry, I don't understand what you want.
Aftab Ahmed Khan
am 11 Jun. 2014
Aftab Ahmed Khan
am 11 Jun. 2014
José-Luis
am 11 Jun. 2014
And how do you measure time? You could look into a timer object.
doc timer
Abhishek M
am 12 Jun. 2014
Are the rows which you provided are of different iterations??
Are these rows related to each other or how is it?? Can you please give some details about it??
0.0000 5.9489 0
0.0000 6.6353 0
Aftab Ahmed Khan
am 12 Jun. 2014
Abhishek M
am 12 Jun. 2014
I guess the 1st 2 columns are inputs and the 3rd column is output{0/1}. What are the other rows, are they different probabilities of inputs?? and are these rows related to each other??
Aftab Ahmed Khan
am 12 Jun. 2014
Abhishek M
am 12 Jun. 2014
Bearbeitet: Abhishek M
am 12 Jun. 2014
will that work aftab??
for example consider these 2 rows
0.0000 6.6353 0
0.0001 6.9292 0
until 0.000 to 6.6353 value will be 1 and what will be the value between 6.6353 to 6.9292. Or else does your input resets after each row and start again with the next row??
Aftab Ahmed Khan
am 12 Jun. 2014
Abhishek M
am 12 Jun. 2014
Different output locations??? What does that mean??
Aftab Ahmed Khan
am 12 Jun. 2014
Aftab Ahmed Khan
am 12 Jun. 2014
Aftab Ahmed Khan
am 12 Jun. 2014
Aftab Ahmed Khan
am 12 Jun. 2014
Abhishek M
am 13 Jun. 2014
Cool.. I saw your recent query. That question seems to be more clear than this. Anyways good to know you got your solution.
Cheers.
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Number Theory finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!