The maximum matching in a bipartite graph can be calculated using a simple depth-first search-based approach as described in the given MATLAB Answers post.
Note that the function assumes the input to be an adjacency matrix of a regular bipartite graph.