% [Q,A,P] = dmptrain(X) Train a discrete Markov process
%
% In:
%   X: 1xC cell array of strings (not necessarily of the same length).
% Out:
%   Q: 1xN array of chars, the states.
%   A: NxN matrix, the transition probabilities between the N states.
%   P: Nx1 vector, the probabilities of the initial state distribution.

