EngineersGarage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise
You are here: Home / Replies / car parking in mat lab

car parking in mat lab

|

Microcontroller › 8051 › CODE FOR CAR PARKING SYSTEM › car parking in mat lab

December 25, 2016 at 8:58 pm #14294
Anonymous
Guest

plese can any one help me with this code

 

A building of 10 floors is used for parking cars. The area of each floor can be used for parking 100 cars. An automatic parking system is used to detect which parking slot is free at each moment. So, the user will check at first which locations are free and select one of them. Then, send a message to the driver informing him about the selected location and a signal to open the gate. Assume that the building spaces as elements of a matrix, write a Matlab program for this parking system. Draw the required flow chart.

 

i=1:10; j=1:100;
isempty (i);
isempty (j);
 
Floor=input('which floor do you want to parck your car:');
Location=input ('which location do you want to park:');
 
for i=Floor;
    for j=Location;
    if  ~isempty(i&&j)
        disp ('this floor is available')
        disp ('plese go to your location')
        disp(i)
    else isempty(i&&j)
        disp ('this floor is not available')
        disp ('sorry we will find another car park for you')
        disp(i)
    end
    end
end

 

RSS Recent Posts

  • Back to the old BASIC days June 19, 2025
  • using a RTC in SF basic June 19, 2025
  • what's it's name June 19, 2025
  • What is correct names for GOOD user friendly circuit drawing program? June 18, 2025
  • Curved lines in PCB design June 18, 2025

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2025 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise