code: public synchronized void write(File file, Collection<MLArray> data)
              throws IOException
      {
          FileOutputStream fos = new FileOutputStream(file);
  
          try
          {
              write(fos.getChannel(), data);
          }
          catch ( IOException e )
          {
              throw e;
          }
          finally
          {
              fos.close();
          }
      }
docs: Writes <code>MLArrays</code> into <code>File</code>
  
  @param file
  the MAT-file to which data is written
  @param data
  the collection of <code>{@link MLArray}</code> objects
  @throws IOException
  if error occurred during MAT-file writing