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 中查找有关 Develop Apps Using App Designer 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!