To create a similarity matrix, you can follow these steps:
Conduct a card sorting exercise with target users.
Organize the insights into a matrix format
Assign a similarity score to each group pair.
Represent the matrix by using a visualization tool.
Analyze the results.
Or consider using software like UXtweak, which automatically creates a similarity matrix for you based on the result of your card sorting test.