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:
  1. Undefined function 'stricmp' for input arguments of type 'char'.
  2. Error in getcallinfo (line 63)
  3. if stricmp(exception.identifier,'MATLAB:mtree:input');
  4. Error in profview>makefilepage (line 1096)
  5. strc = getcallinfo(fullName,'-v7.8');
  6. Error in profview (line 71)
  7. s = makefilepage(profileInfo,idx,
  8. busyLineSortKeyStr2Num(busyLineSortKey));|
any ideas??

답변 (2개)

Matt J
Matt J 2013년 4월 16일
편집: Matt J 2013년 4월 16일

0 개 추천

Change 'stricmp' to 'strcmp' or 'strcmpi'

댓글 수: 2

Gerard Ryan
Gerard Ryan 2013년 4월 16일
Wish I could. It's not in my code. It's here in C:\Program Files\MATLAB\R2011b\toolbox\matlab\codetools\getcallinfo.m
Matt J
Matt J 2013년 4월 16일
편집: Matt J 2013년 4월 16일
My guess would be that getcallinfo was accidentally edited/corrupted. I recommend re-installing.

댓글을 달려면 로그인하십시오.

Dan
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에 대해 자세히 알아보기

제품

태그

질문:

2013년 4월 16일

답변:

Dan
2013년 11월 22일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by