https://nl.mathworks.com/help/bioinfo/ref/profalign.html
profalign - Align two profiles using Needleman-Wunsch global alignment - MATLAB
This MATLAB function returns a new profile (Prof) for the optimal global alignment of two profiles (Prof1, Prof2).
global alignmenttwoprofilesusingwunsch