⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 action_to_acceleration.m

📁 The MDP toolbox proposes functions related to the resolution of discrete-time Markov Decision Proces
💻 M
字号:
function [ax,ay]=action_to_acceleration(a)%     action_to_acceleration: given an action a, this function computes the%                             corresponding (ax,ay) vector% Arguments --------------------------------------------------------------%     a = the action taken (in 1:9) % Evaluation --------------------------------------------------------------%     (ax,ay) = the corresponding acceleration vector's components.%--------------------------------------------------------------------------% In verbose mode, there is no difference to silent mode.%--------------------------------------------------------------------------% MDP Toolbox, INRA, BIA Toulouse, France%--------------------------------------------------------------------------if a==1    ax=-1;ay=-1;elseif a==2    ax=-1;ay=0;elseif a==3    ax=-1;ay=1;elseif a==4    ax=0;ay=-1;elseif a==5    ax=0;ay=0;elseif a==6    ax=0;ay=1;elseif a==7    ax=1;ay=-1;elseif a==8    ax=1;ay=0;elseif a==9    ax=1;ay=1;end             

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -