code: public String contentToString()
      {
          StringBuffer sb = new StringBuffer();
          sb.append(name + " = \n");
          
          if ( getM()*getN() == 1 )
          {
              for ( String key : keys )
              {
                  sb.append("\t" + key + " : " + getField(key) + "\n" );
              }
          }
          else
          {
              sb.append("\n");
              sb.append(getM() + "x" + getN() );
              sb.append(" struct array with fields: \n");
              for ( String key : keys)
              {
                  sb.append("\t" + key + "\n");
              }
          }
          return sb.toString();
      }
docs: /* (non-Javadoc)
  @see com.paradigmdesigner.matlab.types.MLArray#contentToString()