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

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

?? piha.m~

?? CheckMate is a MATLAB-based tool for modeling, simulating and investigating properties of hybrid dyn
?? M~
?? 第 1 頁 / 共 2 頁
字號:
function piha(sys)% Polyhedral invariant hybrid automaton compiler%% This compiler uses a modified method to create a PIHA from the switched% continuous system.  Instead of dividing the entire state space region with% every hyperplane associated with all of the PTHB's, this method creates a% partition of the analysis region for each discrete location.  The analysis% region for each location is then partitioned only with the pthb's that% are relevant for that location (i.e. only the pthb's which define the guards).%Also, clock information and reset information are collected and attached to the%transition information.%%A location is created for each finite state in the%Stateflow machine(s).  An interior region is defined for each location.  This interior%region is a collection of pointers to the structure 'cells' which is a collection%of convex regions (i.e. so the interior regions are made up of a collection of smaller%convex regions).%%Each location also contains information about each of its 'exiting'%transitions.  Information about transitions are contained within each 'transition'.%This information includes:%%-'id'	     					the number of the transition (assigned by Stateflow)%-'expression'					the expression attached to the transition%-'clock'							the clock number (if there is one)%-'source'						the source state (identified by the value of 'q')%-'destination'					the source state (identified by the value of 'q')%-'destination_name'			the label given to the destination%-'reset_flag'					set if there is a reset associated with this transition%-'guard'							pointers to elements in 'cells' that define the guard regions%-'guard_cell_event_flags'	a matrix where the i'th row is a vector of flags identifying%									which boundary hyperplane of the i'th guard cell is an event%									hyperplane%-'guard_compl'					cells which define the complement of the cells in 'guard'%%%% Syntax:%   "HA = piha(sys)"%% Description:%   "piha(sys)" returns a PIHA object.  The returned PIHA object is%   equivalent to the Simulink CheckMate model "sys" within the analysis%   region.%% "only_condition_inputs_flag" added by JimK (11/2002).  The purpose of the flag% is to notify "create_guard" if there are only condition inputs into the stateflow% block.  If this is the case, all edges should be flagged as event edges.%% Last change: 11/18/2002 JPKglobal GLOBAL_PIHA SSTREE CELLS LOCATIONSCELLS={};if ~isstr(sys)  error(['Input argument must be a string.'])  returnendif strcmp(sys,'help')  fid = fopen('@piha/piha_structure.txt');  while 1    line = fgetl(fid);    if ~isstr(line), break, end    fprintf(1,'%s\n',line)  end  fclose(fid);  returnend% Check the model syntax before performing conversionif ~check_model_syntax(sys)  fprintf(1,'\007Syntax error, model conversion aborted.\n')  returnend% Find Simulink handles for switched continuous system blocks (SCSB),% finite state machine blocks (FSMB), and polyhedral threshold blocks% (PTHB) in the CheckMate model.scsbHandle = find_masked_blocks(sys,'SwitchedContinuousSystem');fsmbHandle = find_masked_blocks(sys,'Stateflow');pthbHandle = find_masked_blocks(sys,'PolyhedralThreshold');clockHandle = find_masked_blocks(sys,'VariableZeroOrderHold');clockList=[];%Create a list of all clocks and their associated parametersfor c=1:length(clockHandle)   clockList{c}.name  = get_param(clockHandle(c),'name');   clockList{c}.period =evalin('base',get_param(clockHandle(c),'period'));   clockList{c}.jitter =evalin('base',get_param(clockHandle(c),'jitter'));   clockList{c}.phase =evalin('base',get_param(clockHandle(c),'theta'));end% **********************************% (1) Construct list of hyperplanes.% **********************************% Get threshold hyperplanes from the PTHBs in the simulink model.disp('Compiling threshold hyperplanes.')NBDHP = {};for k = 1:length(pthbHandle)    [Ck,dk] = augment_poly_constraints(scsbHandle,pthbHandle(k));    pthb{k}.c=Ck;    pthb{k}.d=dk;    pthb{k}.hps=[];    for l = 1:length(dk)        new = length(NBDHP)+1;        NBDHP{new}.pthb = k;        NBDHP{new}.index = l;        NBDHP{new}.c = Ck(l,:);        NBDHP{new}.d = dk(l,:);    end%forend%for%Create hyperplane listAR = get_analysis_region(scsbHandle);[pthb,NAR]=create_hyperplanes(NBDHP,AR,pthb);% **************************************************************************% (3) Build data base for Stateflow blocks that will be used for conversion.% **************************************************************************machine_id = get_machine_id(sys);if isempty(machine_id)  fprintf(1,['\007Error: Cannot find machine id for ''' sys '''!!!\n'])  returnendsfdata = {};for k = 1:length(fsmbHandle)    block_name = get_param(fsmbHandle(k),'Name');    chart_id = find_chart_id(machine_id,block_name);    if isempty(chart_id)        fprintf(1,['\007Error: Cannot find chart id for "' block_name '"!!!\n'])        return    else        data_id = sf('find',sf('DataOf',chart_id),'.scope','INPUT_DATA');        input_data = {};        clock=[];        in_num=0;        for l = 1:length(data_id)            [expression,clock_handle]=sf_input_expression(fsmbHandle(k),'data',l);            if ~isempty(clock_handle)                error(['Clocks must be event inputs.'])            else                in_num=in_num+1;                input_data{in_num}.Name = sf('get',data_id(l),'.name');                if input_data{in_num}.Name(1)==' '|input_data{in_num}.Name(length(input_data{in_num}.Name))==' '                            error('The names of Stateflow input data variables cannot have leading or trailing spaces.')                end                input_data{in_num}.Expression = expression;      	    end%if        end%for        event_id = sf('find',sf('EventsOf',chart_id),'.scope','INPUT_EVENT');        input_event = {};        for l = 1:length(event_id)            event_name = sf('get',event_id(l),'.name');            if event_name(1)==' '|event_name(length(event_name))==' '                            error('The names of Stateflow input events cannot have leading or trailing spaces.')            end            if ~strcmp(event_name,'start')                [expression,clock_handle]=sf_input_expression(fsmbHandle(k),'event',l);                if ~isempty(clock_handle)                    clock_num=length(clock)+1;                    clock{clock_num}.Name=sf('get',event_id(l),'.name');                    clock{clock_num}.ClockBlock=get_param(clock_handle,'name');                    clock{clock_num}.ClockHandle=clock_handle;                else               	    % ignore the start event, which is used only for simulation purpose        	        new = length(input_event)+1;        	        input_event{new}.Name = event_name;                    if ~isempty(sf('find',event_id(l),'.trigger','RISING_EDGE_EVENT'))                	    input_event{new}.Trigger = 'RISING_EDGE_EVENT';        	         end                    if ~isempty(sf('find',event_id(l),'.trigger','FALLING_EDGE_EVENT'))    	                input_event{new}.Trigger = 'FALLING_EDGE_EVENT';    	            end                    if ~isempty(sf('find',event_id(l),'.trigger','EITHER_EDGE_EVENT'))                	    input_event{new}.Trigger = 'EITHER_EDGE_EVENT';                    end                     if strcmp('RISING_EDGE_EVENT',input_event{new}.Trigger)                        input_event{new}.Expression =                       	 sf_input_expression(fsmbHandle(k),'event',l);% moved                    elseif strcmp('FALLING_EDGE_EVENT',input_event{new}.Trigger)                         input_event{new}.Expression =                   	    ['~(' sf_input_expression(fsmbHandle(k),'event',l) ')'];% moved                    else                        error('This version only supports  rising and falling event edges!')                    end%if                end%if            end%if        end%for        sfdata{k}.BlockName = block_name;        sfdata{k}.SimulinkHandle = fsmbHandle(k);        sfdata{k}.StateflowChartID = chart_id;        sfdata{k}.InputData = input_data;        sfdata{k}.InputEvent = input_event;        sfdata{k}.Clock = clock;    end%ifend%for% **************************************************************% (4) Find initial discrete states for all the Stateflow blocks.% **************************************************************% Get initial state id for each Stateflow block, assuming that there is% only one default transition per machine.q0 = [];for k = 1:length(sfdata)  chart_id = sfdata{k}.StateflowChartID;  DTid = sf('DefaultTransitionsOf',chart_id);  q0id = sf('get',DTid,'.dst.id');  q0(k) = q0id;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲欧美日韩在线| 国产午夜精品福利| 日韩美女主播在线视频一区二区三区 | 天天色 色综合| 国内精品第一页| 日本二三区不卡| 精品成人a区在线观看| 亚洲黄色在线视频| 懂色av一区二区三区免费观看| 欧美精品在线视频| 亚洲免费观看高清完整版在线观看熊 | 色综合一区二区三区| 日韩女同互慰一区二区| 亚洲精品免费在线观看| 国产99久久久国产精品潘金网站| 8v天堂国产在线一区二区| 亚洲欧美日韩中文播放| 成人亚洲精品久久久久软件| 精品国产免费一区二区三区香蕉 | 青青青爽久久午夜综合久久午夜| 色综合久久久网| 亚洲国产精品高清| 国产一区不卡在线| 日韩欧美一级片| 蜜臀久久99精品久久久久久9| 欧美片网站yy| 午夜精品一区在线观看| 欧美日韩一区二区三区四区 | 亚洲精品乱码久久久久久| 国产成人午夜视频| 国产亚洲婷婷免费| 国产高清不卡一区二区| 国产性做久久久久久| 国内外成人在线| 久久久久久久性| 国产v日产∨综合v精品视频| 国产视频视频一区| 成人v精品蜜桃久久一区| 国产精品国产精品国产专区不片| 成人av在线网站| ...av二区三区久久精品| 91亚洲国产成人精品一区二三| 中文字幕一区二区在线观看| 99re热视频这里只精品| 亚洲精品免费电影| 欧美老女人在线| 久久99精品久久久久久动态图 | 一区二区三区免费看视频| 91网站最新网址| 依依成人综合视频| 欧美丰满嫩嫩电影| 国产综合成人久久大片91| 久久精品一区蜜桃臀影院| 福利视频网站一区二区三区| 国产精品理论片| 欧美日韩久久不卡| 久久99国产乱子伦精品免费| 久久久综合九色合综国产精品| 国产麻豆精品在线观看| 亚洲色图自拍偷拍美腿丝袜制服诱惑麻豆 | 国产婷婷色一区二区三区四区| caoporm超碰国产精品| 亚洲福利视频一区二区| 日韩一区二区在线播放| 国产91综合网| 午夜免费久久看| 欧美国产成人精品| 欧美视频在线一区二区三区 | 成人av电影在线网| 亚洲香肠在线观看| 精品国产污网站| 91免费观看国产| 男人的天堂久久精品| 亚洲欧美综合在线精品| 制服丝袜日韩国产| 9l国产精品久久久久麻豆| 日韩高清一区二区| 最新国产の精品合集bt伙计| 欧美二区三区的天堂| 国产盗摄一区二区三区| 日韩电影一区二区三区四区| 中文在线一区二区| 欧美成人性福生活免费看| 日本二三区不卡| 成人免费观看视频| 激情五月婷婷综合网| 亚洲一区成人在线| 国产精品成人免费精品自在线观看| 欧美日韩免费高清一区色橹橹| 成人午夜伦理影院| 国产综合色精品一区二区三区| 亚洲va韩国va欧美va| 亚洲欧美国产高清| 亚洲国产精品精华液2区45| 欧美xxx久久| 欧美一区二区三区四区久久| 色视频成人在线观看免| 成人精品视频网站| 国产v综合v亚洲欧| 经典三级在线一区| 日韩电影在线一区| 性感美女久久精品| 一卡二卡三卡日韩欧美| 亚洲欧美经典视频| 日韩伦理av电影| 国产精品进线69影院| 中文字幕av一区二区三区| 欧美国产禁国产网站cc| 久久久99久久精品欧美| 久久免费精品国产久精品久久久久| 欧美一区二区三区的| 欧美区在线观看| 欧美一区三区二区| 日韩区在线观看| 日韩视频免费观看高清完整版| 欧美久久久久久蜜桃| 欧美性大战久久| 欧美日韩精品一区视频| 欧美视频你懂的| 欧美精品一卡二卡| 日韩视频123| 久久亚洲春色中文字幕久久久| 久久久久88色偷偷免费| 国产亚洲欧洲一区高清在线观看| 国产亚洲欧美激情| 中文字幕 久热精品 视频在线| 成人免费一区二区三区视频| 亚洲男人的天堂av| 性久久久久久久久| 国内精品免费在线观看| 岛国精品在线播放| 色成人在线视频| 欧美日韩午夜在线| 欧美不卡视频一区| 日本一区二区三级电影在线观看| 免费的国产精品| 黑人精品欧美一区二区蜜桃| 国产成人av资源| 色综合久久久久综合99| 欧美一区二区三区四区高清| 国产色91在线| 亚洲一区二区精品久久av| 久久99九九99精品| av不卡一区二区三区| 欧美蜜桃一区二区三区| 精品成人一区二区三区| 亚洲嫩草精品久久| 奇米亚洲午夜久久精品| 成人午夜激情片| 欧美日韩第一区日日骚| 精品国产露脸精彩对白| 中文字幕一区二区三区av| 婷婷综合另类小说色区| 高清在线不卡av| 欧美日本高清视频在线观看| 亚洲精品在线免费播放| 一区二区三区在线播放| 国产自产视频一区二区三区| 欧美影片第一页| 国产欧美一区二区精品忘忧草 | 成人欧美一区二区三区视频网页| 亚洲制服丝袜在线| 国产一区二区三区香蕉| 欧美在线999| 国产日本一区二区| 免费日本视频一区| 91久久精品国产91性色tv| 久久久777精品电影网影网| 亚洲6080在线| 色先锋资源久久综合| 久久综合视频网| 午夜a成v人精品| 欧洲生活片亚洲生活在线观看| 久久午夜电影网| 日韩精品1区2区3区| 99re这里只有精品首页| 国产亚洲自拍一区| 久久成人精品无人区| 欧美日韩黄视频| 一区二区三区精密机械公司| 成人性生交大片免费看在线播放| 日韩欧美色综合| 日韩中文字幕亚洲一区二区va在线| 99精品1区2区| 最新日韩在线视频| 成人美女在线视频| 国产精品欧美一级免费| 国产精品一区二区男女羞羞无遮挡| 欧美精品 国产精品| 亚洲aaa精品| 91精品国产综合久久久蜜臀图片| 一区二区三区在线观看国产| 99精品国产视频| 亚洲精品日日夜夜| 色综合天天狠狠| 亚洲自拍偷拍九九九| 在线视频亚洲一区| 午夜欧美一区二区三区在线播放| 欧美日韩免费在线视频| 爽爽淫人综合网网站|