Back to the main page.
Bug 650 - user feedback in ft_sourceplot needs to be cleaned up
Status | CLOSED WONTFIX |
Reported | 2011-05-10 14:19:00 +0200 |
Modified | 2011-07-13 14:46:50 +0200 |
Product: | FieldTrip |
Component: | core |
Version: | unspecified |
Hardware: | PC |
Operating System: | Mac OS |
Importance: | P1 normal |
Assigned to: | Jan-Mathijs Schoffelen |
URL: | |
Tags: | |
Depends on: | |
Blocks: | |
See also: | http://bugzilla.fcdonders.nl/show_bug.cgi?id=649 |
Robert Oostenveld - 2011-05-10 14:19:35 +0200
if hasfun && ~hasatlas val = fun(xi, yi, zi, qi); if ~hasfreq && ~hastime, fprintf('voxel %d, indices [%d %d %d], location [%.1f %.1f %.1f] %s, value %f\n', sub2ind(dim, xi, yi, zi), ijk(1:3), xyz(1:3), data.unit, val); elseif hastime && hasfreq, val = fun(xi, yi, zi, qi(1), qi(2)); fprintf('voxel %d, indices [%d %d %d %d %d], %s coordinates [%.1f %.1f %.1f %.1f %.1f], value %f\n', [sub2ind(dim(1:3), xi, yi, zi), ijk(1:3)', qi], cfg.inputcoord, [xyz(1:3)' data.freq(qi(1)) data.time(qi(2))], val); elseif hastime, fprintf('voxel %d, indices [%d %d %d %d], %s coordinates [%.1f %.1f %.1f %.1f], value %f\n', [sub2ind(dim(1:3), xi, yi, zi), ijk(1:3)', qi], cfg.inputcoord, [xyz(1:3)', data.time(qi(1))], val); elseif hasfreq, fprintf('voxel %d, indices [%d %d %d %d], %s coordinates [%.1f %.1f %.1f %.1f], value %f\n', [sub2ind(dim(1:3), xi, yi, zi), ijk(1:3)', qi], cfg.inputcoord, [xyz(1:3)', data.freq(qi)], val); end elseif hasfun && hasatlas val = fun(xi, yi, zi, qi); fprintf('voxel %d, indices [%d %d %d], %s coordinates [%.1f %.1f %.1f], value %f\n', sub2ind(dim, xi, yi, zi), ijk(1:3), cfg.inputcoord, xyz(1:3), val); elseif ~hasfun && ~hasatlas fprintf('voxel %d, indices [%d %d %d], location [%.1f %.1f %.1f]\n', sub2ind(dim, xi, yi, zi), ijk(1:3), xyz(1:3)); elseif ~hasfun && hasatlas fprintf('voxel %d, indices [%d %d %d], %s coordinates [%.1f %.1f %.1f]\n', sub2ind(dim, xi, yi, zi), ijk(1:3), cfg.inputcoord, xyz(1:3)); end this should be restructured, e.g. str = fprintf('voxel = %d', i) str = fprintf('%s, indices [%d %d %d]', str, xi, yi, zi); str = fprintf...
Robert Oostenveld - 2011-05-10 15:20:06 +0200
I have made the indicated changes, hopefully
Robert Oostenveld - 2011-05-10 15:21:38 +0200
I have made the indicated changes, but noticed code that pertains to time and frequency that I am not sure about whether it works. Can you provide an example mat file with a time and/or frequency source reconstruction in them?
Jan-Mathijs Schoffelen - 2011-06-20 16:57:59 +0200
Wait until new implementation of source structures is implemented before finalizing this