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

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

?? zuihou.m

?? 大量遺傳算法實現程序
?? M
字號:
function  varargout = zuihou( varargin )   
% this module edit the parameters .

%  February 2004
%  $Revision: 1.00 $  




if (nargin == 0) | isstruct( varargin{1} )     %  LAUNCH GUI
    
    if nargin == 1
        T_SimulationData = varargin{1} ;
    else
        T_SimulationData = [] ;
    end
    
    % find if have the same figure, and close it .
    OldFigure = findobj( 'type', 'figure', 'Tag', 'zuihou' ) ;
    if ishandle( OldFigure )
        close( OldFigure ) ;
    end
    

    % generate a new figure .
    FigureHandle = figure( 'Visible', 'off' ) ;
    set( FigureHandle, 'Units' , 'pixels', 'Position', [150 150 500 300], ...
        'Name', 'T型自卸汽車優化分析程序', ...
        'Tag', 'zuihou', ...
        'FileName' , '' ,...
        'MenuBar' , 'none' ,...
        'NumberTitle' , 'off' ,...
        'Resize', 'off', ...
        'windowstyle', 'normal', ...
        'Visible', 'off' ) ;
    
    % generate the menu .
    generate_MenuContent( FigureHandle ) ;
    
    % generate the uicontrols .
    generate_FigureContent( FigureHandle ) ;
 
    % save the T_SimulationData .
    setappdata( FigureHandle, 'T_SimulationData', T_SimulationData ) ;
    
    
    % display the figure .
    movegui( FigureHandle, 'center' ) ;

%     set( findobj( FigureHandle, 'Type', 'uicontrol' ), 'Units', 'normalized' ) ;
    set( FigureHandle, 'Visible', 'on' ) ;

    % init the data .
    init_FigureContent( FigureHandle ) ;
    
    
    if nargout > 0
        varargout{1} = FigureHandle;
    end
    
elseif ischar(varargin{1}) % INVOKE NAMED SUBFUNCTION OR CALLBACK
    
    global  SET_DEBUG_VALUE_IN_SIMULATOR ;
    if isempty( SET_DEBUG_VALUE_IN_SIMULATOR ) | ~isnumeric( SET_DEBUG_VALUE_IN_SIMULATOR )
        SET_DEBUG_VALUE_IN_SIMULATOR = 0 ;
    else
    end
    
    if  SET_DEBUG_VALUE_IN_SIMULATOR == 1 ; 
        
        if (nargout)
            [varargout{1:nargout}] = feval(varargin{:}); % FEVAL switchyard
        else
            feval(varargin{:}); % FEVAL switchyard
        end             
        
    else        
        
        try
            if (nargout)
                [varargout{1:nargout}] = feval(varargin{:}); % FEVAL switchyard
            else
                feval(varargin{:}); % FEVAL switchyard
            end
        catch            
            disp(lasterr);
        end
        
    end

    
end


% ------------------------------------------------------------
function  generate_MenuContent( FigureHandle ) ;


% generate the file menu .
% ------------------------------------------------------------
MenuHandle = uimenu( 'Parent', FigureHandle, 'Label', '文件(&F)' ) ;

% define the parameters of the menus .
MenuLabel = { '打開(&O)'; '退出(&E)' } ;

% add Polygon at 2003.10.13 .
MenuTag = { 'MenuOpenResult';  'MenuClose' } ;
MenuCallback = { ['T_youhua( ''MenuOpenHistory_Callback'', gcbf)']; ...
        ['close all;'] } ;
SeparatorGroup = { 'off'; 'on' } ;

% generate the uimenus of file .
for num = 1: length( MenuTag )
% for num = 3
    UimenuHandle(num) = uimenu( MenuHandle ) ;
    set( UimenuHandle(num), 'Tag' , MenuTag{num} , ...
        'Callback' , MenuCallback{num} , ...
        'Label' , MenuLabel{num} , ...
        'Separator', SeparatorGroup{num} ) ;
end

% generate the parameter menu .
% ------------------------------------------------------------
MenuHandle = uimenu( FigureHandle, 'Label', '參數(&P)' ) ;

% define the parameters of the menus .
MenuLabel = { '導入(&L)'; '保存(&E)' } ;

% add Polygon at 2003.10.13 .
MenuTag = { 'MenuLoadData'; 'MenuSaveData' } ;
MenuCallback = { ...
    ['zuihou( ''LoadData_Callback'', gcbo)']; ...
    ['zuihou( ''SaveData_Callback'', gcbo)']; } ;
SeparatorGroup = { 'off'; 'on' } ;

% generate the uimenus of file .
for num = 1: length( MenuTag )
    UimenuHandle(num) = uimenu( MenuHandle ) ;
    set( UimenuHandle(num), 'Tag' , MenuTag{num} , ...
        'Callback' , MenuCallback{num} , ...
        'Label' , MenuLabel{num} , ...
        'Separator', SeparatorGroup{num} ) ;
end



% generate the parameter menu .
% ------------------------------------------------------------
MenuHandle = uimenu( FigureHandle, 'Label', '幫助(&H)', 'Enable', 'on' ) ;

% define the parameters of the menus .
MenuLabel = { '幫助(&P)'; '演示(&D)'; '關于(&A)';'時鐘(&S)' } ;

% add Polygon at 2003.10.13 .
MenuTag = { 'MenuHelp'; 'MenuDemo'; 'MenuAbout';'shijian' } ;
MenuCallback = { ...
    ['T_youhua( ''MenuHelp_Callback'', gcbo)']; ...
    ['T_youhua( ''MenuDemo_Callback'', gcbo)']; ...
    ['T_youhua( ''MenuAbout_Callback'', gcbo)'];...
    ['T_youhua( ''shizhong'', gcbo)']} ;
SeparatorGroup = { 'off'; 'on'; 'on'; 'on' } ;

% generate the uimenus of file .
for num = 1: length( MenuTag )
    UimenuHandle(num) = uimenu( MenuHandle ) ;
    set( UimenuHandle(num), 'Tag' , MenuTag{num} , ...
        'Callback' , MenuCallback{num} , ...
        'Label' , MenuLabel{num} , ...
        'Separator', SeparatorGroup{num} ) ;
end

% ------------------------------------------------------------
function  generate_FigureContent( FigureHandle )
% generate the uicontrols .


% init the variables .
FigureWidth = 700 ;
FigureHeight = 500 ;
TabSpace = 10 ;
TextHeight = 22 ;
ChangeYPos = 30 ;


% reset the figure's size .
set( FigureHandle, 'Units', 'pixels', ...
    'Position', [150 150  FigureWidth  FigureHeight], ...
    'DoubleBuffer', 'on' ) ;

% generate the axes to plot lines .
AxesHandle = axes( 'Parent', FigureHandle, 'Units' , 'normalized' ,  ...
    'Position', [0 0 1 1], 'Visible', 'off', ...
    'Xlim', [0  FigureWidth], 'Ylim', [0  FigureHeight] ) ;

% get the color of the figure .
FigureColor = get( FigureHandle, 'Color' ) ;
% reset the default value of the uicontrols .
set(FigureHandle,'defaultuicontrolunits','normalized');
set(FigureHandle,'defaultuicontrolfontname','隸書');
set(FigureHandle,'defaultuicontrolBackgroundColor', FigureColor );
TitleXPos = TabSpace ;
TitleWidth = FigureWidth - TabSpace * 1.5 ;
TitleHeight = 25 ;
TitleYPos = FigureHeight - TitleHeight - TabSpace * 1 ;
TitlePosition = [TitleXPos  TitleYPos  TitleWidth  TitleHeight] ;
% com_BackgroundFrame(AxesHandle, Frame1Position ) ;
Titlehandle = uicontrol(FigureHandle,'style','text', 'unit','pixels',...
    'position',TitlePosition,'horizontal','center',...
    'string', 'T型自卸汽車優化軟件最終結果', 'fontsize',18 );
% define the first frame .

FrameXPos = TabSpace * 2 +30;
FrameWidth = (FigureWidth - TabSpace * 6) * 0.5+200 ;
FrameHeight = 180 ;
FrameYPos = TitlePosition(2) - FrameHeight - TabSpace * 2 ;
Frame1Position = [FrameXPos  FrameYPos  FrameWidth  FrameHeight] ;
% generate a frame .
TitleHandle = uicontrol(FigureHandle,'style','frame', 'Units','pixels',...
    'position',Frame1Position  );


TextXPos = Frame1Position(1) + 15 ;
TextYPos = Frame1Position(2) + Frame1Position(4) - 12 ;
TextWidth = 80 ;
TextPosition = [TextXPos  TextYPos  TextWidth  TextHeight] ;

SubtitleHandle = uicontrol(FigureHandle, 'Style','text', 'Units','pixels',...
    'position',TextPosition,'Horizontal','center',...
    'string', '初始油壓', 'fontsize',13 );

TextXPos = Frame1Position(1) + 15 +20;
TextYPos = Frame1Position(2) + Frame1Position(4) -  70;
TextWidth = 450 ;
TextPosition = [TextXPos  TextYPos  TextWidth  40] ;

SubtitleHandle = uicontrol(FigureHandle, 'Style','text', 'Units','pixels',...
    'position',TextPosition,'Horizontal','left',...
    'string', '優化前后的初始油壓比較', 'fontsize',13 );
text1 = uicontrol(FigureHandle, 'Style','text', 'Units','pixels',...
    'position',[100 330 80 30],'Horizontal','left',...
    'string', '優化前', 'fontsize',13 );
edit1 = uicontrol(FigureHandle, 'Style', 'edit', 'Units','pixels',...
        'position', [180 330 80 30], 'Horizontal','center', 'BackgroundColor', [1 1 1], ...
        'Tag','edit1' , ...
        'String', 0, 'FontSize',11);
text2 = uicontrol(FigureHandle, 'Style','text', 'Units','pixels',...
    'position',[300 330 80 30],'Horizontal','left',...
    'string', '優化后', 'fontsize',13 );
edit2 = uicontrol(FigureHandle, 'Style', 'edit', 'Units','pixels',...
        'position', [380 330 80 30], 'Horizontal','center', 'BackgroundColor', [1 1 1], ...
        'Tag','edit2' , ...
        'String', 0, 'FontSize',11);
text3 = uicontrol(FigureHandle, 'Style','text', 'Units','pixels',...
    'position',[100 280 120 30],'Horizontal','left',...
    'string', '優化后提高', 'fontsize',13 );
text3 = uicontrol(FigureHandle, 'Style','text', 'Units','pixels',...
    'position',[350 280 120 30],'Horizontal','left',...
    'string', '%', 'fontsize',13 );
edit3 = uicontrol(FigureHandle, 'Style', 'edit', 'Units','pixels',...
        'position', [250 280 80 30], 'Horizontal','center', 'BackgroundColor', [1 1 1], ...
        'Tag','edit3' , ...
        'String', 0, 'FontSize',11);       


FrameXPos = TabSpace * 2 +30;
FrameWidth = (FigureWidth - TabSpace * 6) * 0.5+200 ;
FrameHeight = 180 ;
FrameYPos = TitlePosition(2) - FrameHeight - TabSpace * 2-210 ;
Frame1Position = [FrameXPos  FrameYPos  FrameWidth  FrameHeight] ;
% generate a frame .
TitleHandle = uicontrol(FigureHandle,'style','frame', 'Units','pixels',...
    'position',Frame1Position  );


TextXPos = Frame1Position(1) + 15 ;
TextYPos = Frame1Position(2) + Frame1Position(4) - 12 ;
TextWidth = 150 ;
TextPosition = [TextXPos  TextYPos  TextWidth  TextHeight] ;

SubtitleHandle = uicontrol(FigureHandle, 'Style','text', 'Units','pixels',...
    'position',TextPosition,'Horizontal','center',...
    'string', '設計變量優化結果', 'fontsize',13 );

TextXPos = Frame1Position(1) + 15 +20;
TextYPos = Frame1Position(2) + Frame1Position(4) -  150;
TextWidth = 450 ;
TextPosition = [TextXPos  TextYPos  TextWidth  120] ;

SubtitleHandle = uicontrol(FigureHandle, 'Style','text', 'Units','pixels',...
    'position',TextPosition,'Horizontal','left',...
    'string', '基于遺傳算法所得到的設計變量優化結果', 'fontsize',13 );
Text4 = uicontrol(FigureHandle,'style','text', 'Units','pixels',...
    'position',[80 90 80 30] ,'Horizontal','center',...
'string', '設計變量', 'fontsize',13 );
edit4 = uicontrol(FigureHandle, 'Style', 'edit', 'Units','pixels',...
        'position', [200 90 300 25], 'Horizontal','center', 'BackgroundColor', [1 1 1], ...
        'Tag','edit4' , ...
        'String', 0, 'FontSize',11);


% define the parameters of the buttons .
ButtonString = { '上一步'; '導入'; '保存'; '結束' } ; 
ButtonTag = { 'PreviousButton'; 'LoadButton'; 'SaveButton'; 'NextButton' } ;
ButtonCallback = { ['zuihou(''PreviousButton_Callback'',gcbo)']; ...
        ['zuihou(''LoadData_Callback'',gcbo)']; ...
        ['zuihou(''SaveData_Callback'',gcbo)']; ...
        ['zuihou(''NextButton_Callback'',gcbo)'] } ;

ButtonWidth = 80 ;
ButtonHeight = 25 ;
ButtonXPos = FigureWidth - ButtonWidth * 4 - TabSpace * 6 ;
ButtonYPos = TabSpace * 2 ;;
ButtonPosition = [ButtonXPos  ButtonYPos  ButtonWidth  ButtonHeight] ;
for num = 1: 4
    TempButtonPosition = ButtonPosition ;
    TempButtonPosition(1) = TempButtonPosition(1) + (num - 1) * (ButtonWidth + TabSpace) ;
    % generate the pushbutton: OK .
    ButtonHandle = uicontrol( 'Parent', FigureHandle, 'Units', 'Pixels', 'Position', TempButtonPosition, ...
        'Style', 'pushbutton', 'Tag',ButtonTag{num}, 'string', ButtonString{num}, 'Fontsize',12, ...
        'Callback', ButtonCallback{num} ) ;
    
end


handles = guihandles( FigureHandle ) ;
guidata( FigureHandle, handles ) ;




% --------------------------------------------------------------------------
function  init_FigureContent( h )
       
handles = guidata( h ) ;
% get the T_SimulationData .

T_SimulationData = getappdata( handles.zuihou, 'T_SimulationData' ) ;
if isempty( T_SimulationData )
    T_SimulationData = T_youhua( 'Get_DefaultT_SimulationData' ) ;    
    % save the data .
    setappdata( handles.zuihou, 'T_SimulationData', T_SimulationData ) ;
end
xx = T_SimulationData.Position(1).P;
yy = T_SimulationData.Position_yh(1).P;
zz = 100*(xx-yy)/xx;
pp = T_SimulationData.x;

set(handles.edit1,'string',xx);
set(handles.edit2,'string',yy);
set(handles.edit3,'string',zz);
set(handles.edit4,'string',num2str(pp));


%---------------------------------------------------------------

function  LoadData_Callback( h )
       
handles = guidata( h ) ;


PromptString = '選擇數據文件.' ;
WarningString1 = '文件格式出錯。 ' ;
WarningString2 = '選擇的文件不是正確的數據文件。 ' ;


[ FileName , PathName ] = uigetfile( {'*.mat','數據文件(*.mat)'}, PromptString ) ;


if FileName == 0
    return ;    
else
    
    [TempPathName, FileName, FileTypeName, Version] = fileparts( FileName ) ;

    if ~strcmp( FileTypeName, '.mat' ) ;
        warndlg( WarningString1, '警告', 'modal' ) ;
        return ;
    end
    SaveFile = fullfile( PathName, [FileName, FileTypeName, Version] ) ;
end

T_SimulationData = [] ;
try
    load( SaveFile, 'T_SimulationData' ) ;
catch
end

if isempty( T_SimulationData ) | ~isstruct( T_SimulationData );
 
    
    warndlg( WarningString1, '警告', 'modal' ) ;
    return ;
end


% save the data .
setappdata( handles.zuihou, 'T_SimulationData', T_SimulationData ) ;

% display the new data .
init_FigureContent( h ) ;




% --------------------------------------------------------------------------
function  SaveData_Callback( h )
       
handles = guidata( h ) ;

% get the T_SimulationData .
T_SimulationData = getappdata( handles.zuihou, 'T_SimulationData' ) ;
x = T_SimulationData.x;

PromptString = '保存數據文件.' ;
MessageString = '保存數據文件成功。 ' ;

[ FileName , PathName ] = uiputfile( {'*.mat','數據文件(*.mat)'}, PromptString ) ;


if FileName == 0
    return ;    
else
    
    [TempPathName, FileName, FileTypeName, Version] = fileparts( FileName ) ;

    if ~strcmp( FileTypeName, '.mat' ) ;
        FileTypeName = '.mat' ;
    else
    end
    SaveFile = fullfile( PathName, [FileName, FileTypeName, Version] ) ;
end

% save the result  file .
save( SaveFile, 'x' ) ;


msgbox( MessageString ) ;




% --------------------------------------------------------------------------
function  PreviousButton_Callback( h )
       
handles = guidata( h ) ;

% get the T_SimulationData .
T_SimulationData = getappdata( handles.zuihou, 'T_SimulationData' ) ;

% return the wizard figure .
xianshi( T_SimulationData ) ;


% close the current figure .
pause(0) ;
close( handles.zuihou ) ;


% --------------------------------------------------------------------------
function  NextButton_Callback( h )
       
handles = guidata( h ) ;

pause(0) ;
close( handles.zuihou ) ;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产乱码精品一品二品| 欧美一区二区精品久久911| 欧美日韩国产电影| 国产丝袜在线精品| 亚洲不卡在线观看| www.久久精品| 久久久久久久久久久99999| 亚洲午夜在线电影| 成人av手机在线观看| 欧美不卡一区二区| 日本欧洲一区二区| 精品视频在线免费观看| 亚洲欧洲一区二区在线播放| 国产一区二区三区观看| 91精品国产综合久久福利| 又紧又大又爽精品一区二区| 高清国产午夜精品久久久久久| 欧美成人精品3d动漫h| 亚洲成在人线免费| 欧美探花视频资源| 一区二区三区视频在线看| thepron国产精品| 中文字幕欧美国产| 国产不卡免费视频| 日本一区二区在线不卡| 国产精品一区一区| 久久综合九色综合欧美就去吻| 奇米精品一区二区三区四区| 欧美群妇大交群中文字幕| 亚洲动漫第一页| 欧美三级视频在线播放| 亚洲午夜在线观看视频在线| 在线视频国内一区二区| 亚洲制服丝袜在线| 欧美日韩精品系列| 秋霞电影网一区二区| 9191成人精品久久| 免费成人在线播放| 2017欧美狠狠色| 国产精品影视在线| 国产精品美女视频| 97精品视频在线观看自产线路二| 亚洲欧美在线视频| 在线观看区一区二| 丝袜国产日韩另类美女| 欧美成人国产一区二区| 韩国欧美国产一区| 国产精品毛片久久久久久久| 成人福利在线看| 亚洲美女淫视频| 欧美丰满高潮xxxx喷水动漫| 免费欧美日韩国产三级电影| 久久嫩草精品久久久精品一| 国产成人av在线影院| 亚洲手机成人高清视频| 欧美日韩一区二区三区四区五区 | 日韩三级免费观看| 久久国产精品色婷婷| 久久久av毛片精品| 91精品91久久久中77777| 亚洲成在人线在线播放| 精品国产污网站| 91片在线免费观看| 蜜臀久久99精品久久久久久9| 国产亚洲va综合人人澡精品 | 欧美区在线观看| 国产一区二区导航在线播放| 亚洲视频在线一区观看| 日韩三级视频在线看| 国产v日产∨综合v精品视频| 亚洲综合色噜噜狠狠| 欧美精品一区二区三区在线 | 欧美男生操女生| 成人免费观看视频| 日韩精品一级二级| 国产精品久久二区二区| 91精品国产综合久久久久久久| 国产一区二区三区四区五区入口| 亚洲精品乱码久久久久久日本蜜臀| 538在线一区二区精品国产| 成人免费毛片片v| 七七婷婷婷婷精品国产| 日韩一区在线播放| 久久久久久久久久美女| 制服丝袜av成人在线看| 91免费看视频| 国产凹凸在线观看一区二区| 日本成人在线网站| 亚洲一区二区三区影院| 国产精品视频一二| 欧美大片免费久久精品三p | 成人黄色电影在线 | 亚洲午夜久久久久久久久电影网| 久久精品水蜜桃av综合天堂| 3atv在线一区二区三区| 在线日韩一区二区| 91视频在线观看免费| 国产精品99久久久久久宅男| 日韩精品乱码免费| 一区二区三区国产豹纹内裤在线| 国产欧美精品一区二区三区四区| 日韩一区二区免费高清| 欧美日韩国产一区| 欧美性猛交一区二区三区精品| eeuss鲁一区二区三区| 国产裸体歌舞团一区二区| 蜜桃免费网站一区二区三区| 视频一区国产视频| 亚洲国产一区在线观看| 亚洲六月丁香色婷婷综合久久 | 在线成人av影院| 欧美日韩高清一区| 欧美四级电影在线观看| 欧洲在线/亚洲| 色综合久久综合| 色老头久久综合| 欧美色精品天天在线观看视频| 91丝袜美腿高跟国产极品老师 | 亚洲欧洲精品一区二区三区| 中文字幕久久午夜不卡| 国产女主播一区| 国产精品免费av| 亚洲美女区一区| 亚洲自拍偷拍图区| 午夜精品久久久久久不卡8050| 五月天久久比比资源色| 三级在线观看一区二区| 免费成人性网站| 国产一区二区三区四| 风间由美性色一区二区三区| 波多野结衣中文字幕一区| 91亚洲大成网污www| 欧美性三三影院| 日韩一级完整毛片| 久久久国产精品午夜一区ai换脸| 国产欧美精品一区二区色综合 | 久久嫩草精品久久久久| 国产精品毛片久久久久久久| 亚洲精品国产一区二区三区四区在线| 一区二区欧美在线观看| 午夜精品久久久| 国产在线播放一区二区三区| 成人av电影在线观看| 91国偷自产一区二区三区观看| 欧美日韩在线免费视频| 精品国产一区二区三区久久久蜜月 | 国产成人免费视频一区| 色综合视频在线观看| 制服丝袜亚洲网站| 国产人成一区二区三区影院| 亚洲美女视频在线| 狠狠色丁香久久婷婷综| 色综合中文综合网| 男女男精品网站| 岛国一区二区在线观看| 日本高清不卡视频| 欧美精品一区二区三区蜜臀| ㊣最新国产の精品bt伙计久久| 天天影视涩香欲综合网| 成人免费高清视频| 在线电影欧美成精品| 亚洲国产精华液网站w| 日本一区中文字幕| 国产精品66部| 在线播放中文一区| 亚洲视频 欧洲视频| 激情久久五月天| 欧美视频在线不卡| 亚洲国产精品二十页| 日韩不卡一区二区| 色老综合老女人久久久| 国产亚洲女人久久久久毛片| 婷婷综合另类小说色区| 91日韩一区二区三区| 久久久久久久精| 奇米一区二区三区| 欧美日韩专区在线| 亚洲女女做受ⅹxx高潮| 国产69精品久久久久777| 欧美一二三四区在线| 亚洲一区在线看| 91丨porny丨国产入口| 国产精品无码永久免费888| 裸体一区二区三区| 欧美一区二区三区视频在线| 亚洲品质自拍视频| 成人h动漫精品| 国产日韩欧美高清| 国产精品99久久久久| 精品裸体舞一区二区三区| 日韩电影在线观看一区| 欧美日韩www| 午夜伦理一区二区| 欧美三级在线视频| 午夜视频在线观看一区二区| 欧美网站大全在线观看| 亚洲一区二区三区影院| 在线视频观看一区| 亚洲一二三级电影| 欧美精品1区2区3区|