Chapter 18
Recovering from Mistakes
IN THIS CHAPTER
Understanding error messages
Considering the uses of quick alerts
Managing both common and custom error messages
Embracing good coding practices
A lot of people associate mistakes with failure. Actually, everyone makes mistakes, and they’re all learning opportunities. Some of the greatest minds the world has ever seen thrived quite nicely on mistakes. (Consider how many tries it took Edison to get the light bulb right; also, see my blog post at http://blog.johnmuellerbooks.com/2013/04/26/defining-the-benefits-of-failure/ on the benefits of failure.) The point is that mistakes are normal, common, and even advantageous at times, as long as you get over them and recover. That’s what this chapter is all about — helping you recover from mistakes.
MATLAB can’t talk to you directly, so it communicates through error messages. Part of the problem is that MATLAB and humans speak two different languages, so sometimes the error messages aren’t quite as helpful as they could be. This chapter helps you understand the error messages so that you ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access