3.0

3.0 | 4 ratings Rate this file 144 downloads (last 30 days) File Size: 7.73 KB File ID: #23156

Graphical Simulation of an Elevator

by Husam Aldahiyat

 

02 Mar 2009

Code covered by BSD License  

Graphical Simulation of an Elevator and its passengers.

Download Now | 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 (7)
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

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
graphics 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
gui Husam Aldahiyat 02 Mar 2009 12:20:25
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com