To plot time in days against sales in dollars in MATLAB, you can start by first creating two arrays. One array will consist of the time in days and the other array will consist of the sales in dollars. Here's a sample code block to create these arrays:
main.m108 chars4 lines
Once you have your arrays ready, you can use the "plot" function in MATLAB to plot the time series:
main.m89 chars5 lines
This will produce a plot with the time series of sales in dollars plotted against the time in days on the x-axis.
gistlibby LogSnag