I am looking to populate a list of statistics, essentially a list of strings, representing a set of statistics names (i.e. volume, intensity, Surface area). I want to be able to visualize all the stats and select a one of them, and set it as a new variable.
I would like to have some kind of simple GUI interface, I was trying to make a dropdown menu of some kind using the following, but I am not sure how to get the string out. I want to be able to have the script pause until i chose one.
vSpotsStatsNameUnique = {'Volume';'MeanIntensity';'SurfaceArea};S.fh = figure('units','pixels',... 'position',[300 300 300 110],... 'menubar','none',... 'name','Spot Statistics',... 'numbertitle','off',... 'resize','off');S.pp = uicontrol('style','pop',... 'units','pixels',... 'position',[20 10 260 40],... 'string', vSpotsStatsNameUnique);S.ed = uicontrol('style','edit',... 'units','pix',... 'position',[20 60 260 30],... 'fontsize',16,'string','none');
Any help would be greatly appreciated. Thankyou.
Best Answer