You can create an xy graph for your weight data versus time using the plot function in MATLAB. Here is an example code that takes user inputs for time and weight points and plot them on the graph:
main.m342 chars13 lines
Once you run the code, it will prompt you to enter time and weight points separated by a comma. You can enter any number of data points. Then, it will plot the points on the graph and add labels and title to it. Here is an example output of the graph:
gistlibby LogSnag