%% Create a Value Table
% This example shows how to use rlTable to create a value table. You can use such a table to represent the critic of an actor-critic agent with a finite observation space.
% Create an environment interface, and obtain its observation specifications.

env = rlPredefinedEnv("BasicGridWorld");
obsInfo = getObservationInfo(env)

% Create the value table using the observation specification.

vTable = rlTable(obsInfo)

% Copyright 2019 The MathWorks, Inc.