{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

eeg_plot_surf - function[p = eeg_plot_surf(p eeg_plot_surf...

Info icon This preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
function[p] = eeg_plot_surf(p) % eeg_plot_surf - Plot a patch surface with voltage colourmap % %[p] = eeg_plot_surf(p) % % fields of p struct used: % % p.rangeMethod - initialised by eeg_toolbox_defaults % p.colorMap.map - initialised by eeg_toolbox_defaults % % p.volt.sampleTime % p.mesh.data.vertices{p.mesh.current} % p.mesh.data.faces{p.mesh.current} % p.mesh.data.timeseries{p.mesh.current} % % $Revision: 1.1 $ $Date: 2009/04/28 22:13:52 $ % Licence: GNU GPL, no express or implied warranties % History: 10/2002, Darren.Weber_at_radiology.ucsf.edu % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% fprintf('\nEEG_PLOT_SURF...\n'); tic; % confirm that a patch surface is available if isfield(p,'mesh'), if isfield(p.mesh,'data'), if isfield(p.mesh.data,'timeseries'), if isempty(p.mesh.data.Cdata{p.mesh.current}), msg = sprintf('...p.mesh.data.Cdata{%d} is empty\n',p.mesh.current); error(msg); end end end else error('...p.mesh.data is empty - load mesh first\n'); end %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Determine/validate the min, max surface color data range %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Select mesh timeseries values at samplePoint switch p.mesh.data.meshtype{p.mesh.current}, case {'scalp','elec'}, samplePoint = p.volt.samplePoint; sampleTime = p.volt.sampleTime; otherwise samplePoint = p.mesh.samplePoint; sampleTime = p.mesh.sampleTime; end % get number of vertices nvert = size(p.mesh.data.vertices{p.mesh.current},1);
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
% Assume more vertices than time points [s1,s2] = size(p.mesh.data.Cdata{p.mesh.current});
Image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern