function mphmesh(m,name,varargin)
% MPHMESH Plot a mesh in a MATLAB figure
% 
%   MPHMESH(MODEL,MESHNAME) plots the mesh MESHNAME in a MATLAB figure 
%   window.
% 
%   MPHMESH(MODEL,MESHNAME,...) plots the mesh MESHNAME in a MATLAB figure 
%   window with the sepcified properties.
% 
%   Valid properties include:
%   Property           Value/{Default}  Description
%   -----------------------------------------------------------------------
%   Parent             Double           Parent axis
%   Edgecolor          Char {'k'}       Edge color
%   Edgelabels         'on'|{'off'}     Show edge labels
%   Edgelabelscolor    Char {'k'}       Color for edge labels
%   Edgemode           {'on'}|'off'     Show edges
%   Facealpha          Double {1}       Use transparency
%   Facelabels         'on'|{'off'}     Show face labels
%   Facelabelscolor    Char|{'k'}       Color for face labels
%   Facemode           {'on'}|'off'     Show faces
%   Meshcolor          Char {'flat'}    Color for face element
%   Vertexlabels       'on'|{'off'}     Show vertex labels
%   Vertexlabelscolor  Char|{'k'}       Color for vertex labels
%   Vertexmode         'on'|{'off'}     Show vertices
% 
%   Example:
%     % Load shell_diffusion.mph from the Model Library:
%     model = mphload('shell_diffusion.mph');
%     % Plot the geometry geom1:
%     mphmesh(model,'mesh1')
% 
%     % Plot the mesh with a colored element and transparency set 0.5:
%     mphmesh(model, 'mesh1', ...
%        'edgecolor', 'b', ...
%        'facealpha',0.5,...
%        'meshcolor','r');

% Copyright 2010-2011 COMSOL
