saveValue Function for Tracking Metrics Over Time
This is a series of videos about developing a function to store values over time. I use the function to capture and track daily metrics on various quantities, then plot them in reports to see trends. The videos use the code-along style.
In this first video, I write a test script to capture the uses cases of the functions, which will be the requirements that direct the development.
saveValue with a MAT-File Object
In the next video in this series of videos about developing a set of functions to store values over time, I investigate using the MAT-file object to store the values.
In the third video in this series about developing functions to store values over time, I use a MATLAB table to store variables in the MAT-file.
In the fourth video in this series about developing functions to store values over time, I write the loadValue
function to retrieve previously stored values.
In the fifth video in this series about developing functions to store values over time, I use the datetime object to store the timestamp associated with the value.
In the sixth video in this series about developing functions to store values over time, I look into satisfying the use case of specifying a custom date when saving the value.
Specifying datetime Input Format
In the sixth video in this series about developing functions to store values over time, I look into satisfying the use case of specifying a custom date when saving the value.
In the eighth video in this series about developing functions to store values over time, I put the function to work by adding it to some of my scripts and reports to let me start tracking values.
Fixing Errors in the Value Store
Sometimes when I record a variable with the saveValue function, it is a mistake, or it was a test, or it was some outlier that I do not want to keep forever. Here I load, edit and resave to fix.