main_ini.m
来自「多智能体工具包」· M 代码 · 共 38 行
M
38 行
function [Class_Num,Class_Matrix_Size,Class_Id_Vector]=main_ini% MAIN_INI Initialize the system parameters.% Copyright (c) 1997-2000 Jiming Liu and Jianbing Wuglobal Region_Num;% ------ Behavior Define ---------Behav_Matrix_Size=[Region_Num 1];% ------ Behavior Define End ------% ------- Goal Define ---------Total_Goal_Num=1;Goal_Matrix_Size=[1 1];% ------- Goal Define End ------% ------- Class Define --------Class_Num=3;Class_Id_Vector=[1 2 3];% ------------ Class Characters ------ % A class_Characteristics include: % 1. Cell_Num----------Cell Number of this Class % 2. Cell_Color_Red----the Red Vector of the Color of the Class(0-255); % 3. Cell_Color_Green--the Green Vector of the Color of the Class(0-255); % 4. Cell_Color_Blue---the Blue Vector of the Color of the Class(0-255);Chra_Matrix_Size=[4 1]; % also fill CHARACTERISTICS Postion Define% ---- combine the initial number -----Class_Matrix_Size=[Behav_Matrix_Size;Goal_Matrix_Size;Chra_Matrix_Size];
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?