MATLAB: How to Remove a specific Items from listbox and get its name into a variable?

listbox

i got the code to delete an item from listbox…. now,,, what if i want to get the name of the deleted item in a variable?? for ex there are 4 images in my listbox… image1.jpg,image2.jpg,image3.jpg and image4.jpg….. i delete image3.jpg… now i want the name image3.jpg in a variable… how to do that… please reply…

Best Answer

By then it is too late. Keep track of the item before you delete it.