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 계정에 로그인하거나 계정을 새로 만드십시오.