%% Create a Q Table
% This example shows how to use rlTable to create a Q table. Such a table could be used to represent the actor or critic of an agent with finite observation and action spaces.
% Create an environment interface, and obtain its observation and action specifications.

env=rlMDPEnv(createMDP(8,["up";"down"]));
obsInfo = getObservationInfo(env)
actInfo = getActionInfo(env)

% Create the Q table using the observation and action specifications.

qTable = rlTable(obsInfo,actInfo)

% Copyright 2019 The MathWorks, Inc.