Viterbi decoding - most probable path
Perform Viterbi Decoding to find the most likely path and probability of the sequence 'seq' for the system defined as follows:
p is the initial state probability matrix
A is the State transition matrix
B is the Output matrix where possible outputs are mapped to
integers 1,2,...
'end_prob' state is the final state - can be specified if required
or omitted in which case the ending state is chosen as the most probable
state
Usage:
seq=[1 1 1 2];
A=[.5 .4 .1;0 .7 .3;0 0 1];
p=[1 0 0];
B=[.8 .2;.6 .4; .1 .9];
end_state=3;
[q P]=most_likely_viterbi(seq,p,A,B,end_state);
This implementation is an improvement over similar implementations in MATLAB Central in that, the end state can be optionally specified.
Reference: This implementation is of the Algorithm described in
a speech processing course at the Univ. of Southern California, Los Angeles.
Author: Suneesh Sasikumar
Cite As
Suneesh (2026). Viterbi decoding - most probable path (https://in.mathworks.com/matlabcentral/fileexchange/28830-viterbi-decoding-most-probable-path), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Wireless Communications > Communications Toolbox > PHY Components > Error Detection and Correction >
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
