Reuse a State Multiple Times in a Chart (variable times)
    6 views (last 30 days)
  
       Show older comments
    
    Adel Fernandez
 on 6 Mar 2019
  
    
    
    
    
    Answered: Mark McBroom
    
 on 6 Mar 2019
            Suppose you have the situation discussed in the example:
What is the best solution if you have to reuse many states, 100, 1000 or N (variable), and generate code ?
0 Comments
Accepted Answer
  Mark McBroom
    
 on 6 Mar 2019
        One option could be to use a Simulink For-Each subsystem.  Inside the for-each subsystem would be a single instance of the state chart.  
0 Comments
More Answers (0)
See Also
Categories
				Find more on Decision Logic in Help Center and File Exchange
			
	Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
