Undefined Variable Error
7 views (last 30 days)
Show older comments
I am getting the following error:
Undefined function or variable 'fullBlocks'.
Error in ==> EmotionalGaze at 445
for i = 1:length(fullBlocks)
Here is the portion of code:
uniqueStims = cell(1,108);
for i = 1:length(fullBlocks)
gd = allGazeData{fullBlocks{i}};
for j = 1:gd.NumStims
sname = ['b' num2str(gd.blockNum) '_' gd.AllStims{j}.StimName];
uniqueStims{j+27*(i-1)} = sname;
end
end
uniqueStims = sort(uniqueStims);
Does anyone know why I would be getting this error? Thank you.
0 Comments
Answers (1)
Walter Roberson
on 4 Feb 2012
You do not show any code that defines a cell array named "fullBlocks". The variable simply does not exist in what we are shown.
Perhaps there was more code above what you show ?
0 Comments
See Also
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!