Undefined Variable Error

3 次查看(过去 30 天)
Duch
Duch 2012-2-4
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.

回答(1 个)

Walter Roberson
Walter Roberson 2012-2-4
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 ?

类别

Help CenterFile Exchange 中查找有关 Logical 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by