0001 function job_plot_meg_show_meginfo(inst_id)
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015 global vbmeg_inst;
0016
0017 if isempty(vbmeg_inst.plotmeg{inst_id}.MEGinfo),
0018 str = 'MEG data have not been loaded yet.';
0019 else
0020 MEGinfo = vbmeg_inst.plotmeg{inst_id}.MEGinfo;
0021 vb_struct2vars(MEGinfo,{'MEG_ID','SampleFreq','Nchannel','Nrepeat', ...
0022 'device'});
0023 str = sprintf(['MEG ID = %s \n' ...
0024 'Sampling Frequency = %d [Hz]\n' ...
0025 'Number of sensors = %d \n' ...
0026 'Number of trials = %d \n' ...
0027 'Device = %s'], MEG_ID, SampleFreq, Nchannel, Nrepeat, ...
0028 device);
0029 end
0030
0031 h = msgbox(str,'MEG/EEG information');