MATLAB: How to execute smith waterman algorithm in matlab

smith waterman algorithm

I want to get an optimal sequence for given set of sequences. So, I am using Smith Water-man algorithm. How to execute that algorithm in Matlab?