function res=mphmodel(model, varargin)
% MPHMODEL Return tags for the nodes and subnodes in the COMSOL model object
% 
%   MPHMODEL(MODEL) returns the tags for the nodes and subnodes of the 
%   object MODEL.
%
%   STR = MPHMODEL(MODEL,'-STRUCT') returns the tags for the nodes and 
%   subnodes of the object MODEL as a MATLAB structure STR.
% 
%   The MPHMODEL function can be used when navigating the model object and 
%   learning about its structure. The mphmodel function is mainly designed 
%   for usage when working on the command line and one needs to learn what 
%   nodes are placed under a particular node.
% 
%   Example:
%     % Load transport_and_adsorption.mph from the Model Library:
%     model = mphload('transport_and_adsorption')
%     % See what nodes are available under the model object:
%     mphmodel(model)
%     % See what nodes are available under the geom node:
%     mphmodel(model.geom)
%     % Get the model information as a structure:
%     res = mphmodel(model, '-struct')
% 
%   See also: mphnavigator

% Copyright 2010-2011 COMSOL
