Undefined Variable Error

7 visualizzazioni (ultimi 30 giorni)
Duch
Duch il 4 Feb 2012
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.

Risposte (1)

Walter Roberson
Walter Roberson il 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 ?

Community Treasure Hunt

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

Start Hunting!

Translated by