From the series: saveValue Function for Tracking Metrics Over Time
Stuart McGarrity, MathWorks
(Originally posted on Stuart's MATLAB Videos blog.)
This is the first in a series of videos about developing a set of functions to store values over time. 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. This video uses the code-along style.
Part 1: MATLAB Test Script 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.
Part 2: 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.
Part 3: Storing as a Table 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.
Part 4: loadValue
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.
Part 5: Using datetime Objects 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.
Part 6: Specifying a Date 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.
Part 7: 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.
Part 8: Using saveValue 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.
Part 9: 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.
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 siteYou 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.
This website uses cookies to improve your user experience, personalize content and ads, and analyze website traffic. By continuing to use this website, you consent to our use of cookies. Please see our Privacy Policy to learn more about cookies and how to change your settings.