Back to the main page.
Bug 1270 - mask option ft_singleplotER
Status | CLOSED FIXED |
Reported | 2012-01-20 08:53:00 +0100 |
Modified | 2012-03-21 15:52:52 +0100 |
Product: | FieldTrip |
Component: | core |
Version: | unspecified |
Hardware: | PC |
Operating System: | Windows |
Importance: | P2 normal |
Assigned to: | Jan-Mathijs Schoffelen |
URL: | |
Tags: | |
Depends on: | |
Blocks: | |
See also: |
Mark - 2012-01-20 08:53:05 +0100
The mask option in ft_singleplot is not working properly. Testscript: clear all mask = repmat([0 0 0 1 1 1 1 1 0 0],2,1); timelock1 = []; timelock1.label = {'1' '2'}; timelock1.time = 1:10; timelock1.dimord = 'chan_time'; timelock1.avg = randn(2,10); timelock1.mask = timelock1.avg.*mask; cfg = []; cfg.channel = '1'; cfg.maskparameter = 'mask'; ft_singleplotER(cfg, timelock1); Running the above scripts results in the following error: ??? Undefined function or variable 'xvector'. Error in ==> ft_singleplotER at 477 maskdatavector = reshape(mean(datmask,1), [1 numel(xvector)]);
Jan-Mathijs Schoffelen - 2012-01-20 09:01:31 +0100
Thanks for this clear report. I'll verify and fix asap.
Jan-Mathijs Schoffelen - 2012-01-20 09:04:18 +0100
bug confirmed