Hide Implementation in Functions
(Originally posted on Doug's MATLAB Video Tutorials blog.)
I am working on a large scale project that involves many broad topics like loading data, and visualizing. Both of these are important, but I needed to work on the visualizing immediately. I knew I would be passing around a large dataset into lots of different functions. Eventually, I would want a very efficient method for loading the data. However, to get me to the point where I could develop the visuzation I simply loaded the data in from a .MAT file. Eventually I would change to something better than loading from a file. Using a function to hide where the data comes from allows me to switch implementation easily in the future.
Recorded: 16 Jan 2014
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.