You can define your x and y values in vectors and then use the plot
function to create the graph. Here's an example:
main.m165 chars12 lines
Now if you want to add new points every time you run the script, you can define your x and y vectors as empty and then use the input
function to get the new values from the user. Here's the modified script:
main.m336 chars20 lines
Now every time you run the script, you can add new x and y points to the graph. Just be careful not to overwrite your original x and y values!
gistlibby LogSnag