title: Convert Arbitrary Datatype to String in Matlab
body: <p>How do you convert an variable of arbitrary datatype to a string in Matlab? That is, I'd like to have a function that produces a string so I can concatenate it and do other operations without knowing the datatype beforehand.</p>
  
  <p>For classes and other non-primitive datatypes, something like what disp() outputs would work fine, but I don't know how to capture the output for disp().</p>
  
  <p>I'd like to be able to do this without having to detect datatypes and then call each xyz2str.</p>