Undefined Variable Error
7 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (1)
Walter Roberson
le 4 Fév 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 commentaires
Voir également
Catégories
En savoir plus sur Logical dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!