Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
it might be easier to draw the state machine instead of writing it out textually. Stateflow (another product by MathWorks, makers of MATLAB and Simulink) is probably the best tool to represent state machine logic like this. Look at some of the getting started videos on the Stateflow website: http://www.mathworks.com/products/stateflow/examples.html