Whether you fight in ranked matches or player matches, they will count towards this trophy once you've completed three matches.
You don't have to win any of them to unlock the Iron Heartache trophy, but bear in mind that there are two other trophies for winning one ranked match and another for winning one player match.