```
ans = 

    'C4'        ''      ''          'eighth note' 
    'C4'        ''      ''          'eighth note' 
    'C4'        ''      ''          'half note'   
    'G4'        ''      ''          'quarter note' 

```

This is the output of a matlab code of variable 'ans'. I want to save this result in a different text file. What are the steps should I follow ? 

Thanks in advance.