Matlab won't accept clus as a term
1 view (last 30 days)
Show older comments
Good day all, hope you are all well today.
I have a slight problem with the newest version of matlab (version 8.1.0.604 R2013a). I have a dataset where I have compared cortical thickness between two groups, and now I want to find the clusters and peaks in the results from this comparison. All I get is this:
>> term( clus ) Undefined function or variable 'clus'.
Same story with peak. I remembered this actually worked in an older matlab version on another computer (version 7.10.0 R2010a), so I decided to try on that one instead. Same story there as well. Clus and Peak's suddenly something it can't understand. The function I really need to use in the end is: term( peak ) + term( SurfStatInd2Coord( peak.vertid, avsurf )', {'x','y','z'}), but this obviously won't work when it does not recognise clus and peak as terms.
Hoping for a positive responce, and thanking in advance: Ann M.
1 Comment
Eric
on 26 Sep 2013
What do you think "clus" and "peak" mean? These are not built-in functions or variables in Matlab. These must have been created or loaded by some other Matlab code you were using to which you no longer have access. It could also perhaps be a problem with your Matlab path if "clus" and "peak" are function M-files.
-Eric
Answers (1)
Jan
on 26 Sep 2013
An interesting question. I could not find any information about the term command and I'm not sure why you assume that clus is a defined symbol. On one hand you explain, that it does not work in the newest version, but when you try it in Matlab7.10 the code fails also. Then you explain, that the real code is:
term( peak ) + term( SurfStatInd2Coord( peak.vertid, avsurf )', {'x','y','z'})
But this code does not contain the expression "clus" anywhere. So where does "clus" appear in the code? "peak.vertid" might mean, that "peak" is a struct. Did you define it anywhere? Or is this an object or Java method?
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!