Back to the main page.
Bug 2271 - "testOpenMEEGeeg.m" gives error
Status | CLOSED WORKSFORME |
Reported | 2013-09-02 16:45:00 +0200 |
Modified | 2014-02-24 10:56:39 +0100 |
Product: | FieldTrip |
Component: | external |
Version: | unspecified |
Hardware: | PC |
Operating System: | Windows |
Importance: | P3 normal |
Assigned to: | Robert Oostenveld |
URL: | |
Tags: | |
Depends on: | |
Blocks: | |
See also: |
Ekaterina - 2013-09-02 16:45:35 +0200
in fieldtrip-20130619 'openmeeg_eeg_leadfield_example.m' has the following error: ??? Error using ==> set Color value must be a 3 element numeric vector Error in ==> ft_plot_mesh at 288 set(hs, 'MarkerSize', vertexsize, 'MarkerEdgeColor', vertexcolor); Error in ==> openmeeg_eeg_leadfield_example at 74 figure; ft_plot_mesh(bnd, 'vertexcolor', lf_openmeeg(:,1)) The reason is that grid = ft_prepare_leadfield(cfg) uses function 'fieldtrip-20130901\private\prepare_headmodel.m', which transforms units into 'cm', but the values c, r, sens, pos ??are given in 'mm'.
Ekaterina - 2013-09-02 16:47:01 +0200
in fieldtrip-20130901 'openmeeg_eeg_leadfield_example.m' has the following error: ??? Error using ==> set Color value must be a 3 element numeric vector Error in ==> ft_plot_mesh at 288 set(hs, 'MarkerSize', vertexsize, 'MarkerEdgeColor', vertexcolor); Error in ==> openmeeg_eeg_leadfield_example at 74 figure; ft_plot_mesh(bnd, 'vertexcolor', lf_openmeeg(:,1)) The reason is that grid = ft_prepare_leadfield(cfg) uses function 'fieldtrip-20130901\private\prepare_headmodel.m', which transforms units into 'cm', but the values c, r, sens, pos ??are given in 'mm'.
Robert Oostenveld - 2013-11-28 12:41:27 +0100
This problem does not exist any more, apparently ft_plot_mesh has been fixed in the mean time.