Doug Hull, MathWorks
(Originally posted on Doug's MATLAB Video Tutorials blog.)
The use of whitespace can make your code more pleasant to read. This is not just a nicety, it actually makes it easier to see the structure of your code and makes it more clear where code breaks the established patterns to help find bugs (like copy and paste bugs). Though not presented in this video, Scott pointed out that comments and cell dividers are also excellent ways to format code.
Recorded: 22 Oct 2010
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .Select web site
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.