Stuart’s MATLAB Videos

Watch and Learn

Cleaner code in MATLAB part one of series

I am guilty of making some pretty horrible code from time to time, especially when I think no one else is looking. I wanted to take the next few videos to show how you can go from code that is hard to read and maintain to code you proudly sign your name to. This week we will define a simple problem, show some awful code that happens to work, and then make the code better by breaking down a logic check to smaller, easier to understand statements.
PS. It was actually difficult to write code this bad. I ended up writing the code well and messing it up because I could not write such awful code that actually worked properly!
  • print
  • send email


To leave a comment, please click here to sign in to your MathWorks Account or create a new one.