function mn = mcgetmarkername(d)
% Returns the names of the markers.
%
% syntax
% mn = mcgetmarkernames(d);
%
% input parameters
% d: MoCap data structure
%
% output
% mn: cell structure containing marker names
%
% Part of the Motion Capture Toolbox, Copyright 2008, 
% University of Jyvaskyla, Finland

mn=[];
if isfield(d,'type') && (strcmp(d.type, 'MoCap data') || strcmp(d.type, 'norm data'))
    mn = d.markerName;
%    for k=1:d.nMarkers
%        fprintf([num2str(k) '\t' char(d.markerName{k}) '\n'])
%    end
else
    disp([10, 'The first input argument should be a variable with MoCap or norm data structure.', 10]);
end

