Ignore:
Timestamp:
Apr 12, 2011, 12:12:19 AM (13 years ago)
Author:
sommeria
Message:

correct Matlab PIV, remove call to image tool box. Improve menu of uvmat VelType? (replacement of buttons)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/update_menu.m

    r19 r236  
    1313menu_str=get(handle,'String');
    1414nbmenu=length(menu_str);
    15 ichoice=0;%default
    16 for imenu=1:nbmenu
    17     if isequal(menu_str{imenu},strinput)
    18        ichoice=imenu;
    19     end
    20 end
    21 if ichoice==0%the input string does not exist in the menu
     15ichoice=find(strcmp(strinput,menu_str),1);
     16if isempty(ichoice)%the input string does not exist in the menu
    2217    menu_str{nbmenu+1}=menu_str{nbmenu};%shift  the last item ('more...')
    2318    menu_str{nbmenu}=strinput;
Note: See TracChangeset for help on using the changeset viewer.