Strange error using profview
显示 更早的评论
Using MATLAB R2011b on a wintel laptop.
Trying to run the profiler.
Script profiling finishes... and when I click on a function name in the summary window to drill down, I get this:
- Undefined function 'stricmp' for input arguments of type 'char'.
- Error in getcallinfo (line 63)
- if stricmp(exception.identifier,'MATLAB:mtree:input');
- Error in profview>makefilepage (line 1096)
- strc = getcallinfo(fullName,'-v7.8');
- Error in profview (line 71)
- s = makefilepage(profileInfo,idx,
- busyLineSortKeyStr2Num(busyLineSortKey));|
any ideas??
回答(2 个)
Change 'stricmp' to 'strcmp' or 'strcmpi'
Dan
2013-11-22
0 个投票
Solution: create a new dummy function stricmp.m:
function B=stricmp(varargin) B = strcmpi(varargin{:}); end
I'm also facing some problems because I have a class called 'mtree' that seems to conflict with a variable/function of the same name within the profiler. The profiler has its own 'mtree' function and it is conflicting with my mtree. Now if only MATLAB had a handy refactoring tool, since of course my mtree.m is used throughout dozens of files.
类别
在 帮助中心 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!