Does this mean same thing as saying "what's the matter with you?"

Native speaker’s answer
Rebecca
Yeah, that's right! You could use either "what's the matter with you?" or "what's wrong with you?" The meaning for both of them mostly depends on tone, if it was of concern, annoyance, or something else. Ex: What's wrong with you?! I can't believe you said something so rude. = What's the matter with you?! I can't believe you said something so rude. Ex: What's wrong with you? You look very pale. Maybe you should go to the nurse's office. => concerned tone