function [] = metaDatainfo(data)
% [] = metaDatainfo(data)
%
% This function takes in the .mat metadata file and checks whether the
% number of metadata and metadatakey are missing, and then provide any
% comment and the metadatakey and the corresponding data.
%
% Input parameters:
% data= the metadata file or it pathways

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Current state of the project and change history.
%
%	Created by:	R. Obaid
%	Created on:	07/08/2011
%
%	Version: 1.0
%	Modified by: 
%	Edited on:	
%	  
%
% If you type 'help metaDatainfo' on the Matlab command window, you will be
% able to see the help documentation
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
dat=load(data);

metadataLength=length(dat.metadata);
metadataKey=length(dat.metakey);

if metadataLength ~=metadataKey
    error('Metadata and Metadatakey mismatch');
end

comment=char(dat.metadescription)
temp_metd=num2str(dat.metadata');
temp_metd=cellstr(temp_metd)';


printMeta=strcat(dat.metakey,' =',temp_metd);

Metadata=char(printMeta)






end

