I am getting the following error
    21 views (last 30 days)
  
       Show older comments
    
Error in solution: Line: 55 Column: 1
Illegal use of reserved keyword "end".
0 Comments
Answers (2)
  Walter Roberson
      
      
 on 24 Oct 2025 at 3:51
        Most likely, you have one too many end statements
I recommend using the editor facility "Smart Indent", which I believe has shortcut alt-i (⌘-I on Mac)
0 Comments
See Also
Categories
				Find more on Get Started with MATLAB in Help Center and File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

