Back to the main page.
Bug 2014 - sam beamfomer
Status | CLOSED FIXED |
Reported | 2013-02-27 19:10:00 +0100 |
Modified | 2013-10-27 12:16:45 +0100 |
Product: | FieldTrip |
Component: | inverse |
Version: | unspecified |
Hardware: | PC |
Operating System: | Linux |
Importance: | P3 normal |
Assigned to: | Jan-Mathijs Schoffelen |
URL: | |
Tags: | |
Depends on: | |
Blocks: | |
See also: | http://bugzilla.fcdonders.nl/show_bug.cgi?id=2183 |
Hamid - 2013-02-27 19:10:22 +0100
Two bugs: First: MATLAB gives this error in using sam beamfomer: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ??? Undefined function or method 'SAM_costfun' for input arguments of type 'double'. Error in ==> fminsearch at 191 fv(:,1) = funfcn(x,varargin{:}); Error in ==> beamformer_sam at 146 [opt_angle, fval, exitflag, output] = fminsearch('SAM_costfun', all_angles(min_ind), optim_options, vox_pos, tanu, tanv, lf, all_cov, inv_cov, noise_cov); Error in ==> ft_sourceanalysis at 871 dip(i) = beamformer_sam(grid, sens, vol, squeeze_avg, squeeze(Cy(i,:,:)), optarg{:}); %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% This is because fminsearch (line 146 of beamfomer_sam) does not have access to the following private files: SAM_costfun.m settang.m Second bug: lcmv beamformer accepts the regularisation parameter in this format: cfg.lambda = '5%'; But sam beamformer accepts regularisation parameter in this format: cfg.lambda = 0.05; They should accept the same format!
Jan-Mathijs Schoffelen - 2013-10-27 12:16:23 +0100
Probably the issue pertaining to the not-finding private function is a user error.