Hide implementation in functions
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.
- 类别:
- Level: Basic
评论
要发表评论,请点击 此处 登录到您的 MathWorks 帐户或创建一个新帐户。