Undefined function or variable 'slm'. = QUICK HELP!
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi, all. I'm trying to compare the cortical thickness of normal brains and MCI brains. In the BIC website, they provided me with a step-by-step tutorial for the calculation. However, even when I did do exactly what they've told me to do, this message "Undefined function or variable 'slm'." keeps on showing up. These are the codes that I've typed into the command box:
>> %Creating the matrix of data.
[SubjectNum, NMCI, ThickFileLeft, ThickFileRight]=textread('ADNI45.csv', ' %s %s %s %s');
>> %Create terms
NMCI = term (NMCI);
>> %% 1 You are now ready to create your model and to estimate it
Y = 1 + NMCI;
--> till here everything works well, and all of the sudden when I type
>> %To get your t statistic for group
contrast_direction1 = NMCI.N - NMCI.MCI;
slm_direction1 = SurfStatT ( slm, contrast_direction1);
---> "Undefined function or variable 'slm'." message shows in red. What did I do wrong and how do I fix it? Help please!
Alicia.
댓글 수: 0
답변 (1개)
Jan
2013년 8월 27일
The error message quite correctly states, that you never defined the variable slm before you try to use it as an argument for the function SurfStatT. As I am not familiar with the framework you are using, I'm affraid it's difficult to guess a correct initilization for slm. You will have to look at the function definition of SurfStatT to understand how to use it correctly.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Descriptive Statistics and Visualization에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!