亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? addremovelist.m

?? 使用MATLAB編寫的GUI程序 可實現list菜單的增減
?? M
?? 第 1 頁 / 共 2 頁
字號:
function varargout = addremovelist(varargin)

%
% ADDREMOVELIST creates a GUI which contains two main listboxes, one on the left and one
% on the right. With the usage of two buttons (Add/Remove) the user can select items from
% the list on the left and transfer them to the list on the right and vice versa. Two
% checkboxes allow selecting multiple elements from each list and sort the list contents
% respectively. Hitting the OK button returns ADDREMOVELIST outputs (depending on user
% selections) in MATLAB's workspace. Hitting the Cancel button returns default outputs.
%
% Syntax:
% ---------------------------
%
% addremovelist
% [new_right_contents]=addremovelist
% [new_right_contents,new_left_contents]=addremovelist
% [new_right_contents,new_left_contents,right_index]=addremovelist
% [new_right_contents,new_left_contents,right_index]=addremovelist
% [new_right_contents,new_left_contents,right_index,left_index]=addremovelist
%
% also...
%
% addremovelist
% [new_right_contents]=addremovelist(data)
% [new_right_contents,new_left_contents]=addremovelist(data)
% [new_right_contents,new_left_contents,right_index]=addremovelist(data)
% [new_right_contents,new_left_contents,right_index]=addremovelist(data)
% [new_right_contents,new_left_contents,right_index,left_index]=addremovelist(data)
%
% and also...
%
% addremovelist('PropertyName',PropertyValue)
% [new_right_contents]=addremovelist('PropertyName',PropertyValue)
% [new_right_contents,new_left_contents]=addremovelist('PropertyName',PropertyValue)
% [new_right_contents,new_left_contents,right_index]=addremovelist('PropertyName',PropertyValue)
% [new_right_contents,new_left_contents,right_index]=addremovelist('PropertyName',PropertyValue)
% [new_right_contents,new_left_contents,right_index,left_index]=addremovelist('PropertyName',PropertyValue)
%
% In the above possible syntaxes, addremovelist without any further input arguments
% creates a usage example, addremove(data) creates the main window with data being the
% contents of the list on the left and all other properties to their default values and
% addremovelist('PropertyName',PropertyValue) starts the program by setting pairs of
% possible properties which are described below.
%
% PropertyName          PropertyValue                                                  
% -----------------------------------------------------------------------------
% LeftContents          A cell array of strings containing the contents of the list on the
%                       left (theoretically the list from which the user chooses a subpart
%                       of it as the output
%
% RightContents         A cell array of strings containing the contents of the list on the
%                       right (the output list or a list for an invert process - that is
%                       given the 'output' list create and 'input' list). Note that if
%                       this property is given the return of content corresponding
%                       incdices (see further below) will not be possible. If you try
%                       otherwise, an error will be thrown
%         
% ListNames             A cell array of strings of length 2 containing names for the lists.
%                       The first part of it corresponds to the name of the left list and
%                       the second part to the name of the right list. If not given the
%                       lists are named 'List 1' and 'List 2' respectively
%
% Title                 A string (NOT a cell array) with the window title.
%
% MultiSelect           It should be set to true or false (default true). It controls
%                       whether the user can make multiple selections from both lists or
%                       not. This property can also be changed from within the GUI.
%
% KeepSorted            It should be set to true or false (default false). It controls
%                       whether the list contents (and their corresponding index) remains
%                       sorted during the selections or not. This property can also be 
%                       changed from within the GUI.
%
% Output arguments:
% ---------------------------
% Name                  Value                                                  
% -----------------------------------------------------------------------------
% new_right_contents    A cell array of strings containing the new contents of the list on
%                       the right.
%
% new_left_contents     A cell array of strings containing the new contents of the list on
%                       the left.
%
% right_index           The indices of the items on the right list (derived from the list
%                       on the left)
%
% right_index           The indices of the items on the left list (derived from the list
%                       on the right)
%
% Concerning the indices (right and left): suppose that the initial content of the left
% list is the cell {'Alpha','Bravo','Charlie','Delta'}. Then the corresponding indices are
% [1 2 3 4]. If the user selects 'Bravo' and 'Delta' to be transfered to the list on the
% right, then the indices on the left list become [1 3] and on the right list [2 4]. If we
% choose to sort the contents of the lists then the indices are sorted respectively.
%
% Usage Examples
%----------------------------
%
% Example 1:
%
% [new_right_contents] = addremovelist
%
% new_right_contents = 
% 
%     'Mary'
%     'John'
%     'Susan'
%
% Example 2
%
% lcon = {'Apples','Pears','Oranges','Strawberries','Cherries'};
% lnames = {'Fruits','Buy'};
% wtitle= 'Grocer list';
% 
% [new_right_contents,new_left_contents] = addremovelist('LeftContents',lcon,...
%                                                        'ListNames',lnames,...
%                                                        'Title',wtitle,...
%                                                        'KeepSorted',true)
%
% new_right_contents = 
% 
%     'Oranges'
%     'Pears'
%     'Strawberries'
% 
% 
% new_left_contents = 
% 
%     'Apples'
%     'Cherries'
%
% Example 3
%
% lcon = {'Analysis 1','Analysis 2','Analysis 3','Analysis 4','Analysis 5'};
% wtitle= 'Analysis Results';
% 
% [new_right_contents,new_left_contents,right_index,left_index] = ...
%     addremovelist('LeftContents',lcon,...
%                   'Title',wtitle,...
%                   'KeepSorted',true)
%
% new_right_contents = 
% 
%     'Analysis 2'
%     'Analysis 4'
%     'Analysis 5'
% 
% 
% new_left_contents = 
% 
%     'Analysis 1'
%     'Analysis 3'
% 
% 
% right_index =
% 
%      2     4     5
% 
% 
% left_index =
% 
%      1     3
%
% Example 4
%
% lcon = {'Mary','George','John','Sarah','Susan','Joe','Eric','Helen'};
% lnames = {'Friends','Guests'};
% wtitle = 'Party';
%
% [new_right_contents,new_left_contents,right_index,left_index] = ...
%     addremovelist('LeftContents',lcon',...
%                   'ListNames',lnames,...
%                   'Title',wtitle,...
%                   'KeepSorted',true)
%
% new_right_contents = 
% 
%     'Eric'
%     'Helen'
%     'John'
%     'Mary'
% 
% 
% new_left_contents = 
% 
%     'George'
%     'Joe'
%     'Sarah'
%     'Susan'
% 
% 
% right_index =
% 
%      1     3     5     6
% 
% 
% left_index =
% 
%      2     4     7     8
%
% Example 5
%
% lcon = {'Mary','George','John','Sarah'};
% rcon = {'Susan','Joe','Eric','Helen'};
% lnames = {'Friends','Guests'};
% wtitle = 'Party';
% 
% [new_right_contents,new_left_contents] = ...
%     addremovelist('LeftContents',lcon',...
%                   'RightContents',rcon,...
%                   'ListNames',lnames,...
%                   'Title',wtitle,...
%                   'KeepSorted',true)
%
% new_right_contents = 
% 
%     'Eric'
%     'Helen'
%     'Joe'
%     'John'
%     'Sarah'
%     'Susan'
% 
% 
% new_left_contents = 
% 
%     'George'
%     'Mary'
%
% =============================================================================
%
% Author        : Panagiotis Moulos (pmoulos@eie.gr)
% Version       : 1.0
% First created : June 10, 2007
% Last modified : June 10, 2007
% 




% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name',       mfilename, ...
                   'gui_Singleton',  gui_Singleton, ...
                   'gui_OpeningFcn', @addremovelist_OpeningFcn, ...
                   'gui_OutputFcn',  @addremovelist_OutputFcn, ...
                   'gui_LayoutFcn',  [] , ...
                   'gui_Callback',   []);
if nargin && ischar(varargin{1})
    gui_State.gui_Callback = str2func(varargin{1});
end

if nargout
    [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
else
    gui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT


% --- Executes just before addremovelist is made visible.
function addremovelist_OpeningFcn(hObject, eventdata, handles, varargin)

% Set Window size and Position
set(handles.mainFigure,'Units','pixels')
screensize=get(0,'screensize');                       
winsize=get(handles.mainFigure,'Position');
winwidth=winsize(3);
winheight=winsize(4);
screenwidth=screensize(3);                           
screenheight=screensize(4);                           
winpos=[0.5*(screenwidth-winwidth),0.5*(screenheight-winheight),winwidth,winheight];                          
set(handles.mainFigure,'Position',winpos);

% Set all uicontrol units to normalized so as the default resize function works
set(handles.leftListName,'Units','normalized')
set(handles.rightListName,'Units','normalized')
set(handles.leftList,'Units','normalized')
set(handles.rightList,'Units','normalized')
set(handles.addElement,'Units','normalized')
set(handles.optionsPanel,'Units','normalized')
set(handles.removeElement,'Units','normalized')
set(handles.sortLists,'Units','normalized')
set(handles.allowMultiSelect,'Units','normalized')
set(handles.okButton,'Units','normalized')
set(handles.cancelButton,'Units','normalized')

% Initialize list contents by giving default values
handles.leftListContents='';
handles.rightListContents='';
handles.leftContents=handles.leftListContents;
handles.rightContents=handles.rightListContents;

% Define a flag for processing indices (if up position indices cannot be returned) and a
% flag to control whether the list contents are sorted or not and a multi-selection flag
handles.indflag=false;
handles.sort=false;
handles.multi=true;

% Get input variables from varargin and check for errors
if isempty(varargin) 
    % Create an example (initial contents always sorted)
    handles.leftListContents=sort({'Mary','George','John','Sarah','Susan'});
    % handles.leftListContents={'Analysis 1','Analysis 2','Analysis 3','Analysis 4','Analysis 5'};
    handles.rightListContents='';
    handles.leftContents=handles.leftListContents;
    handles.rightContents=handles.rightListContents;
    set(handles.leftList,'String',handles.leftListContents)
    set(handles.rightList,'String',handles.rightListContents)
    set(handles.leftListName,'String','Friends')
    set(handles.rightListName,'String','Guests')
    set(handles.mainFigure,'Name','Example of Add/Remove listboxes')
elseif length(varargin)==1
    if ~iscellstr(varargin{1})
        error('The first argument to %s must be a cell array of strings',mfilename)
    else
        % Initial contents always sorted
        handles.leftListContents=sort(varargin{1});
        handles.rightListContents='';
        handles.leftContents=handles.leftListContents;
        handles.rightContents='';
    end
elseif length(varargin)>1
    if rem(nargin,2)==0
        error('Incorrect number of arguments to %s.',mfilename);
    end
    okargs={'leftcontents','rightcontents','listnames','title','multiselect','keepsorted'};
    for i=1:2:length(varargin)-1
        parName=varargin{i};
        parVal=varargin{i+1};
        j=strmatch(lower(parName),okargs);
        if isempty(j)
            error('Unknown parameter name: %s.',parName);
        elseif length(j)>1
            error('Ambiguous parameter name: %s.',parName);
        else
            switch(j)
                case 1 % Left list contents
                    if ~iscellstr(parVal)
                        error('The %s parameter value must be a cell array of strings',parName)
                    else
                        % Initial contents always sorted
                        handles.leftListContents=sort(parVal);
                    end
                case 2 % Right list contents
                    if ~iscellstr(parVal) && ~isempty(parVal)
                        error('The %s parameter value must be a cell array of strings or empty',parName)
                    else
                         % Initial contents always sorted
                         handles.rightListContents=sort(parVal);
                    end
                case 3 % List names
                    if ~iscellstr(parVal) && ~length(parVal)==2

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久精品国产在热久久| 中文字幕国产一区二区| 欧美日本国产视频| 精品视频1区2区| 91精品国产综合久久精品app| 欧美在线一二三| 欧美日韩免费电影| 欧美一区二区二区| 中文字幕亚洲精品在线观看| 亚洲精品日韩专区silk| 午夜电影久久久| 久久99精品国产.久久久久久| 国内成+人亚洲+欧美+综合在线| 成人av资源在线| 欧美二区三区91| 欧美国产综合一区二区| 亚洲男人电影天堂| 国产精品一二三四| 97精品电影院| 久久一区二区三区四区| 亚洲人成网站在线| 美国一区二区三区在线播放| 色综合天天综合网国产成人综合天| 欧美在线观看视频在线| 久久精品这里都是精品| 日本欧美一区二区| 91亚洲精品乱码久久久久久蜜桃| 日韩一区二区三区视频| 亚洲免费观看高清完整版在线观看 | 精品一区二区精品| 亚洲国产视频在线| 91福利国产成人精品照片| 午夜国产精品影院在线观看| 亚洲乱码精品一二三四区日韩在线| 亚洲妇熟xx妇色黄| av亚洲精华国产精华精华| 日韩欧美精品三级| 日本美女一区二区| 欧美日韩高清影院| 偷拍一区二区三区| 69精品人人人人| 国内精品国产成人国产三级粉色| 欧美老肥妇做.爰bbww视频| 亚洲一区二区四区蜜桃| 91论坛在线播放| 亚洲高清久久久| 精品国产一区二区三区不卡| 国产麻豆成人精品| 国产精品区一区二区三区| 国产精品888| 亚洲欧美日韩久久| 日韩欧美电影在线| 粉嫩13p一区二区三区| 亚洲免费观看高清完整版在线| 在线观看免费亚洲| 免费在线观看日韩欧美| 久久精品在这里| 一本色道a无线码一区v| 天天色天天操综合| 国产精品久久久久一区二区三区| 91麻豆国产精品久久| 久久精品国产亚洲a| 国产视频911| 欧美一级理论片| 97精品超碰一区二区三区| 免费成人在线观看| 亚洲精品国产品国语在线app| 欧美精三区欧美精三区| 日本午夜精品视频在线观看| 欧美经典一区二区| 色欧美88888久久久久久影院| 激情综合色综合久久| 亚洲国产毛片aaaaa无费看| 久久精品一区八戒影视| 欧美大片免费久久精品三p| 91国产视频在线观看| 99久久夜色精品国产网站| 久久国产三级精品| 日韩二区在线观看| 视频一区免费在线观看| 亚洲另类春色校园小说| 亚洲欧美日韩国产一区二区三区 | 亚洲精品一区二区三区影院 | 国产三区在线成人av| 欧美一级片免费看| 日韩一级大片在线| 欧美精品一区二区三区蜜桃 | 日本在线不卡视频| 天堂va蜜桃一区二区三区漫画版| 亚洲精品写真福利| 亚洲国产另类av| 免费视频最近日韩| 久久99精品国产.久久久久久| 国产一区二区在线观看视频| 国产精品99久久久久久似苏梦涵| 国产精品77777| 91色视频在线| 日韩三级精品电影久久久| 制服丝袜亚洲精品中文字幕| 欧美一二三区在线| 久久久精品人体av艺术| 日韩伦理av电影| 日本伊人午夜精品| 91在线你懂得| 欧美成人精品高清在线播放| 国产日韩v精品一区二区| 怡红院av一区二区三区| 麻豆国产91在线播放| 欧美性做爰猛烈叫床潮| 色偷偷久久人人79超碰人人澡 | 欧美一区二区三区免费在线看| 精品奇米国产一区二区三区| 欧美国产精品劲爆| 美女尤物国产一区| 欧美日韩一区二区欧美激情| 国产精品视频免费| 青青草精品视频| av成人动漫在线观看| 欧美成人精品福利| 丝袜美腿一区二区三区| 91丨九色丨黑人外教| 国产精品久久久久影院老司| 美女国产一区二区三区| 69堂精品视频| 日韩精彩视频在线观看| 欧美日韩精品专区| 亚洲国产精品影院| 91亚洲国产成人精品一区二区三| 久久久精品一品道一区| 激情文学综合丁香| 久久久久国产精品麻豆| 国产一区二区视频在线| 久久久噜噜噜久噜久久综合| 久久激情五月婷婷| 久久久精品tv| 波波电影院一区二区三区| 中文字幕亚洲不卡| 成人av综合在线| 国产精品色在线观看| 不卡的av在线| 亚洲国产视频在线| 欧美精品一区二区在线播放| 国产在线视频一区二区| 国产精品久久三| 欧美日韩国产综合一区二区三区| 丝袜美腿亚洲综合| 国产精品第13页| 欧美一区二区三区免费观看视频| 国产一区二区三区四区五区入口| 国产精品久久久久久久久晋中| 色婷婷综合激情| 激情综合色综合久久| 一区二区三区美女视频| 欧美成人激情免费网| 欧美三级日韩三级国产三级| 精品一区二区三区免费视频| 亚洲欧美综合另类在线卡通| 欧美一区二区免费观在线| 播五月开心婷婷综合| 裸体歌舞表演一区二区| 一区二区激情小说| 国产欧美日韩激情| 欧美一级国产精品| 欧美日韩日本视频| 色素色在线综合| 成人av免费观看| 懂色av一区二区三区免费看| 另类专区欧美蜜桃臀第一页| 亚洲一区二区三区小说| 亚洲激情自拍视频| 国产精品国产三级国产普通话三级 | 欧美羞羞免费网站| 91麻豆国产在线观看| 99re这里只有精品首页| 国产福利一区在线观看| 国产美女精品人人做人人爽| 日韩成人一级片| 久久99热狠狠色一区二区| 蜜臀av性久久久久蜜臀aⅴ流畅| 一区二区三区在线免费视频| 久久综合色综合88| 中文字幕欧美激情| 中文字幕一区日韩精品欧美| 国产精品久久久久9999吃药| 亚洲欧美乱综合| 一区二区三区国产| 精品一区二区三区在线观看| 精品系列免费在线观看| 国产成人在线网站| 日本久久精品电影| 日韩午夜av一区| 国产精品丝袜久久久久久app| 国产精品女同互慰在线看| 国产精品丝袜一区| 免费在线一区观看| 91丝袜国产在线播放| 9191国产精品| 亚洲欧美在线观看| 蜜臀91精品一区二区三区| 不卡一区二区三区四区|