'grp2idx' error in matlab 2011b
古いコメントを表示
I receive the "Undefined function 'grp2idx' for input arguments of type 'double'." error while using svmtrain() in 2011b. Incidentally, I also have matlab2010a but observed that I do not get this error while running the command with the 2010a version. I noted that the statistics toolbox folder is present in both versions. What is the problem and how do I overcome it?
thanks
Vivek
回答 (2 件)
Walter Roberson
2012 年 2 月 11 日
It should exist.
Please check
which -all grp2idx
on both systems. On my R2008b system it shows up as toolbox/stats/grp2idx.m
7 件のコメント
vivek n
2012 年 2 月 12 日
Tom Lane
2012 年 2 月 12 日
Try explicitly adding the required directories to your path
addpath([matlabroot '/toolbox/stats/stats'])
addpath([matlabroot '/toolbox/stats/statsdemos'])
addpath([matlabroot '/toolbox/stats/classreg'])
vivek n
2012 年 2 月 12 日
Tom Lane
2012 年 2 月 12 日
I'm not aware of any bug in the product that would cause this. It appears to be either an installation problem, or some phenomenon that caused your pre-R2011b path to be saved and used without update in R2011b.
vivek n
2012 年 2 月 13 日
Tom Lane
2012 年 2 月 13 日
Would you try
which pathdef -all
and let me know what you see?
vivek n
2012 年 2 月 13 日
wahyu
2012 年 11 月 27 日
0 投票
i have the same problem too,, then, i search in google grp2idx.m, then i saved it, alhamdulillah my svmtrain could work well after that :D may be my instalation is not complette.
カテゴリ
ヘルプ センター および File Exchange で Spreadsheets についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!