亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
91免费精品国自产拍在线不卡 | 欧美美女bb生活片| 在线观看91精品国产麻豆| 日本一区二区三区四区| 青草国产精品久久久久久| 色综合中文字幕国产 | 亚洲国产欧美一区二区三区丁香婷| 美腿丝袜在线亚洲一区| 在线观看精品一区| 国产精品午夜电影| 国产一区二区女| 日韩欧美亚洲国产精品字幕久久久| 亚洲四区在线观看| eeuss国产一区二区三区| 欧美成人女星排名| 婷婷综合另类小说色区| 欧美性大战xxxxx久久久| 久久久久久久网| 国产乱码精品1区2区3区| 日韩午夜在线观看视频| 天天操天天干天天综合网| 一本大道久久a久久精二百| 国产精品欧美极品| 国产大片一区二区| 国产欧美日韩另类视频免费观看| 蜜臀精品一区二区三区在线观看| 欧美精品第1页| 五月婷婷另类国产| 欧美日韩一级片在线观看| 亚洲曰韩产成在线| 欧美三电影在线| 亚洲国产cao| 欧美日韩高清一区二区三区| 午夜精品福利一区二区三区av | 色综合久久天天综合网| 亚洲欧洲美洲综合色网| 91老师片黄在线观看| 自拍偷拍国产亚洲| 91黄色免费网站| 亚洲午夜日本在线观看| 欧美男男青年gay1069videost | 精品国产99国产精品| 久久99国产精品麻豆| 久久亚洲私人国产精品va媚药| 青草国产精品久久久久久| 欧美电影免费观看高清完整版| 国内精品久久久久影院色| 精品999久久久| av电影天堂一区二区在线| 亚洲免费观看高清| 欧美日韩国产一级| 国产美女在线精品| 自拍偷拍亚洲综合| 91精品免费观看| 国产一区二区视频在线播放| 国产精品全国免费观看高清| 色婷婷久久久综合中文字幕| 天天免费综合色| 国产清纯在线一区二区www| 99久久精品99国产精品| 日日夜夜一区二区| 国产欧美日韩激情| 欧美日韩中文国产| 国产精品综合一区二区三区| 亚洲丝袜精品丝袜在线| 91精品国产一区二区人妖| 国产精品一区二区91| 日韩美女精品在线| 日韩欧美精品在线视频| 99精品欧美一区| 久久丁香综合五月国产三级网站| 国产精品久久久久久久久动漫| 欧美日韩精品欧美日韩精品一| 国模无码大尺度一区二区三区| 自拍视频在线观看一区二区| 91精品在线免费观看| 成人av先锋影音| 九一久久久久久| 亚洲第一会所有码转帖| 国产精品久久久一本精品| 在线播放国产精品二区一二区四区| 国产精品自拍三区| 日本一区中文字幕| 亚洲男人天堂一区| 国产三级久久久| 日韩欧美电影一二三| 91国偷自产一区二区三区成为亚洲经典| 美国十次综合导航| 午夜精品久久久久久久久| 亚洲视频在线一区二区| 久久久久久麻豆| 欧美一区二区三区在线视频| 色综合中文综合网| 欧美电影免费观看完整版| 欧美色网一区二区| 色综合久久六月婷婷中文字幕| 狠狠色丁香久久婷婷综合丁香| 日日欢夜夜爽一区| 亚洲一区二区美女| 亚洲色图在线播放| 亚洲色欲色欲www| 综合精品久久久| 综合激情网...| 亚洲欧洲精品成人久久奇米网| 久久久久久久久久久久久女国产乱| 欧美日韩大陆在线| 欧美日韩成人综合天天影院| 欧美三级乱人伦电影| 欧美在线视频你懂得| 一本到不卡免费一区二区| 99精品视频在线播放观看| 成人精品免费看| aa级大片欧美| 色88888久久久久久影院野外| 成人免费观看av| 99re热这里只有精品免费视频| 丁香亚洲综合激情啪啪综合| 国产成人自拍网| 成人a级免费电影| bt欧美亚洲午夜电影天堂| 成人污污视频在线观看| 成人高清视频在线| 日本韩国精品一区二区在线观看| 色综合久久久久| 欧美剧情电影在线观看完整版免费励志电影 | 亚洲三级在线免费观看| 国产精品成人一区二区三区夜夜夜| 国产亚洲综合av| 亚洲欧美激情一区二区| 亚洲韩国精品一区| 久久精品免费观看| 国产河南妇女毛片精品久久久| 不卡的电视剧免费网站有什么| 91在线观看下载| 欧美军同video69gay| 精品精品国产高清a毛片牛牛| 国产人久久人人人人爽| 亚洲人妖av一区二区| 亚洲福利视频三区| 国产美女主播视频一区| 色系网站成人免费| 日韩精品一区二区在线观看| 国产清纯在线一区二区www| 一区二区三区欧美视频| 免费一级欧美片在线观看| 国产成人在线影院| 日本久久电影网| 精品国产一区二区三区忘忧草| 国产精品人人做人人爽人人添 | 国产99久久久精品| 欧美日韩国产精品自在自线| 精品va天堂亚洲国产| 亚洲精品一二三四区| 美洲天堂一区二卡三卡四卡视频| 国产成人精品www牛牛影视| 欧美日韩一本到| 国产午夜精品美女毛片视频| 亚洲一区二区av在线| 国产91色综合久久免费分享| 91成人在线观看喷潮| 久久男人中文字幕资源站| 亚洲大尺度视频在线观看| 大胆亚洲人体视频| 日韩一区二区免费在线观看| 亚洲女人的天堂| 国产剧情一区二区三区| 欧美精品三级日韩久久| 亚洲欧美日韩一区| 国产成人午夜精品5599| 91精品国产全国免费观看| 一区二区中文视频| 国产成人一区二区精品非洲| 日韩亚洲欧美成人一区| 亚洲一区成人在线| 91免费视频网| 国产亚洲短视频| 国内精品免费**视频| 欧美一区二区在线免费观看| 综合久久久久久| 成人黄色片在线观看| 久久噜噜亚洲综合| 麻豆精品在线看| 日韩色在线观看| 麻豆成人久久精品二区三区小说| 欧美午夜免费电影| 一区二区三区在线观看动漫 | 1024精品合集| 成人污污视频在线观看| 久久久影院官网| 国产精品综合久久| 久久九九久久九九| 国产一区二区精品久久91| 欧美大片拔萝卜| 久久av资源网| 精品国产1区二区| 麻豆精品久久久| 久久美女艺术照精彩视频福利播放| 久久99精品国产.久久久久| 精品国产乱码久久久久久蜜臀| 久久精品免费观看|