% plot_RandomSymbolsHist - plot a histogram of random symbols
%
% Script to exercise function RandomSymbols. A set of random symbols 
% is generated and a histogram of the result is generated.

%% set parameters
N        = 1000;
Alphabet = [-3 -1 1 3];
Priors   = [0.1 0.2 0.3 0.4];

%% generate symbols and plot histogram
Symbols = RandomSymbols( N, Alphabet, Priors );
hist(Symbols, -4:4 );
grid
xlabel('Symbol Value')
ylabel('Number of Occurences')

%% Store name of script for automated figure generation
ScriptName = mfilename;