Back to the main page.
Bug 3132 - hasdata variable in ft_layoutplot is not initialized
Status | CLOSED FIXED |
Reported | 2016-05-27 11:28:00 +0200 |
Modified | 2016-06-17 15:56:19 +0200 |
Product: | FieldTrip |
Component: | core |
Version: | unspecified |
Hardware: | Macintosh |
Operating System: | Mac OS |
Importance: | P5 normal |
Assigned to: | Jan-Mathijs Schoffelen |
URL: | |
Tags: | |
Depends on: | |
Blocks: | |
See also: |
Karen Dijkstra - 2016-05-27 11:28:40 +0200
I received the following error in ft_layoutplot: "Undefined function or variable 'hasdata'. Error in ft_layoutplot (line 124) if hasdata" Upon inspection that variable is indeed not initialized in ft_layoutplot, and adding: hasdata = exist('data', 'var'); to my local version fixed the problem for me.
Jan-Mathijs Schoffelen - 2016-05-29 17:54:53 +0200
Thanks for reporting. Note to self: I quickly did a sweep of the commit that introduced the issue in ft_layoutplot. Check ft_topoplotCC as well, because it seems that hasdata is not initialized there either. The rest of the 20 or so functions look OK.