Undefined Variable Error
조회 수: 7 (최근 30일)
이전 댓글 표시
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
답변 (1개)
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 ?
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!