Hi I'd appreciate help with the following problem: Suppose I have a Bayesian metric for navigating a trellis to detect the maximum likelihood sequence on a channel corrupted by ISI. The usual Viterbi algorithm works on the usual ML (nonstochastic channel) metric. Now, given the expression for this metric, how can I use MATLAB to simulate the channel? What is the approach to solve such a problem? Any pointers to existing books or papers on elementary simulation methods would be appreciated too. Thanks in advance. EDIT: Given the expression for the metric, how do I find the bit error rate?