which pem is called by pem_

Hi while I was reading the pem_.m in R2012a\toolbox\ident\ident@idpoly\pem_.m, I had a hard time figuring out which pem is called by pem_.m (Line 68). How does the Matlab m file decide which directory to look for those overload methods?
Thanks,
Richard

댓글 수: 2

Wayne King
Wayne King 2012년 5월 22일
You mean the call:
[SSData, Info] = pem(SSData, DataStruct, Orders, Options);
Richard
Richard 2012년 5월 22일
[PolyData, Info] = pem(PolyData, DataStruct, Orders, Options);
Thanks

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

답변 (3개)

Wayne King
Wayne King 2012년 5월 22일

0 개 추천

It's calling
matlab\toolbox\ident\ident\pem.m

댓글 수: 2

Richard
Richard 2012년 5월 23일
I tried put a statment in \toolbox\ident\ident\pem.m to print a test message and I don't feel it is being called since no test message is printed.
Walter Roberson
Walter Roberson 2012년 5월 23일
Did you
rehash toolbox
after you made the change?

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

Walter Roberson
Walter Roberson 2012년 5월 23일

0 개 추천

Use the extended "which" syntax:
which fun(a,b,c,...) displays the path to the specified function with the given input arguments. For example, which feval(g), when g=inline('sin(x)'), indicates that inline/feval.m would be invoked. which toLowerCase(s), when s=java.lang.String('my Java string'), indicates that the toLowerCase method in class java.lang.String would be invoked.

댓글 수: 1

Richard
Richard 2012년 5월 23일
I rehased. The extended which agreed with what Wayne King suggested.
But I still cannot print anything to confirm that it is actually called. In the past, I was able to confirm which one is called by printing something when it is called.

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

Wayne King
Wayne King 2012년 5월 23일

0 개 추천

How about just using
dbstop in FILESPEC
to set a breakpoint for pem.m?

댓글 수: 2

Walter Roberson
Walter Roberson 2012년 5월 23일
Put a breakpoint at the call to pem(), and use F11 to step into the file.
Richard
Richard 2012년 5월 23일
Thanks a lot Walter. It works and I found it actually calls \toolbox\ident\ident\+idpack\@polydata\polydata.m, which contains a function pem.
Thanks a lot to Wayne as well.

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

카테고리

질문:

2012년 5월 22일

Community Treasure Hunt

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

Start Hunting!

Translated by