sample_plot.m

来自「approximate reinforcement learning」· M 代码 · 共 21 行

M
21
字号
function figh = sample_plot(hist)% Customized plot function for approximate RL.%   FIGH = SAMPLE_PLOT(HIST)% This function will be called if its name is specified in the 'plotfun' field % of the model data structure (defined by calling the problem function in mode % 'model').% Parameters:%   HIST        - the history of the controlled trajectory in the format returned %               by the approximate RL functions. Contains fields: x, u, r, R for%               states, commands, reward, and return evolution. x and u are wide%               matrices with the state/command for each sample on the columns.% Returns:%   FIGH        - (array of) handle(s) for the created figure(s)% figh = plot(hist.x');figh(end+1) = plot(hist.u');figh(end+1) = plot(hist.r);% END sample_plot() RETURNING figh ==================================

⌨️ 快捷键说明

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