Code covered by the BSD License  

Highlights from
Graphical Simulation of an Elevator

3.5

3.5 | 5 ratings Rate this file 9 Downloads (last 30 days) File Size: 7.73 KB File ID: #23156
image thumbnail

Graphical Simulation of an Elevator

by Husam Aldahiyat

 

02 Mar 2009

Graphical Simulation of an Elevator and its passengers.

| Watch this File

File Information
Description

Upon giving the number of floors as input, the elevator takes a random number of passengers and takes them up to a random floor between 2 and number of floors, before going down and picking up other passengers.

The code has extensive comments explaining how everything works.

Acknowledgements

The author wishes to acknowledge the following in the creation of this submission:
Move Sphere

MATLAB release MATLAB 7.4 (R2007a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (12)
05 Mar 2009 skouliki katelouzos

how come people in this building are only entering?
how come nobody is getting out?
how come nobody is just changing floor?
how come in this elevator nobody ever gets stuck between two floors?
I have to say i'm really dissapponted...

05 Mar 2009 Husam Aldahiyat

It's a simple model that can be built upon. The purpose is pure educational (read: comments).

05 Mar 2009 skouliki katelouzos

i was just joking...;)

06 Mar 2009 Husam Aldahiyat

The model on my computer has everything you mentioned plus more (two elevator shafts, tabulated results), but there's no need to submit it here because the working principle is the same.

Putting the basic program here would make it easier to learn (less comments and lines of code to read,plus it's basically simpler). If you were joking, then you'd edit the rating, no? ;)

14 Mar 2009 NOUR  
14 Mar 2009 NOUR

haha, this is a good and a funny one, good job husam, keep on..

14 Mar 2009 Jveer

decent effort

03 Aug 2010 Leo Kay

For anyone who understands elevator simulation programs this is really genius ;)

24 Aug 2010 khaerul anwar

what about the passenger from another floor? if he want to go to first floor??

25 Aug 2010 Husam Aldahiyat

It is a simplified graphical simulation which shows some graphical techniques.

Although, truth be told, in elevator simulations floor to floor travels are not of importance. See, in elevator simulation we are only interested in the peak time (when everyone in the building starts work), which occurs when the lobby is filled with passengers wanting to use the elevator to reach their designated floors.

So floor to floor travel is not important statistically anyway.

But as I said, this file simply shows some use of PATCH and how it can be applied in an animation.

25 Aug 2010 khaerul anwar

i see. thanks for the answer.
btw, i dont understand with the m-file. :-D
i have a task from my teacher. he ask me to make elevator that can use by people from every floor.
can you teach me how the logic that must be understanding first.

23 Sep 2011 ilyass

i need ur files how to get it?

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
patch Husam Aldahiyat 02 Mar 2009 12:20:25
cube Husam Aldahiyat 02 Mar 2009 12:20:25
elevator Husam Aldahiyat 02 Mar 2009 12:20:25
simulation Husam Aldahiyat 02 Mar 2009 12:20:25
graphical Husam Aldahiyat 02 Mar 2009 12:20:25
gui Husam Aldahiyat 02 Mar 2009 12:20:25
door Husam Aldahiyat 02 Mar 2009 12:20:25
building Husam Aldahiyat 02 Mar 2009 12:20:25
graphics Husam Aldahiyat 02 Mar 2009 12:20:25
microwave oven vsdvgsdgd 28 Sep 2011 01:28:29

Contact us at files@mathworks.com