function mphsave(model, filename)
% MPHSAVE Save a COMSOL model
% 
%   MPHSAVE(MODEL) saves the saves the COMSOL model object MODEL.
% 
%   MPHSAVE(MODEL,FILENAME) saves the COMSOL model object MODEL and to the
%   file named FILENAME.
% 
%   If the filename is provided, the model has to be saved previously on 
%   disk.
%   If the filename does not provide a path the file is saved relatively to
%   the current path in MATLAB.
%   The model can be saved as an mph-file, java-file or as an m-file. The 
%   file extension determines which format that is saved.
% 
%   See also: mphload

% Copyright 2010-2011 COMSOL
