Question about arduino robot compass

Hi guys, I'm now playing the arduino robot. I found that the robot has a integrated digital compass, and we can read the robot moving direction by programming as:

Robot.compassRead()

my question is how can I record the compass results so that I can process the data in Matlab? Or where is the output pin of compass so that I can wirelessly transfer the compass data to my computer using device like Xbee.

Could anyone answer this question :sob:

Thank you very much and happy new year!

It depends. What is your robot? What is your robot Arduino board? And, of course, what is the compass that is in your robot?