I figure out how to place the text inside of the progress bar for a single progress bar. Comment out if length(progdata) > 1 and the end for the if. Also you can change 0.99 to width/2 to move the progtext location to the center of the bar.
Would really like to use this function in my own function but I am having trouble figuring out what I need to keep. I already have my GUI made in GUIDE. So basically I need all the functionality of what your code has but for my GUI. I also have only one figure.
Suppose I have a plot that I add points onto using mouse clicks. I put createTable.m in the mouseclick function so that every time a point gets added on the plot, the table adds another row with those (x,y) coordinate values in the column. I've got this working good. What I want to do now is to delete a point from the plot if a row(coordinate pair) gets deleted from the table. To do this I just need to pass the updated data out of createTable.m. Questions is what is the variable that holds updated table data after a row gets deleted or all rows get deleted for that matter?