필터 지우기
필터 지우기

where is worldToSubscript in R2019a?

조회 수: 1 (최근 30일)
Chris Volpe
Chris Volpe 2019년 9월 5일
댓글: Chris Volpe 2019년 9월 6일
I'm running Matlab R2019A. If I type "doc worldToSubscript", it brings up the documentation for this function in the on-line help, which can also be viewed on this page:
This documentation indicates that this method is part of the Image Processing Toolbox, even though its function, similarity to other functions, and dependency on spatial reference objects suggests that it should be part of the mapping toolbox. However, if I type "help worldToSubscript", or try to invoke it, Matlab tells me it's not found. Where is it?
  댓글 수: 2
Walter Roberson
Walter Roberson 2019년 9월 5일
It is a "method" of the image referencing object class. It is not available by itself, only if an image reference object is passed in.
Chris Volpe
Chris Volpe 2019년 9월 5일
But where is it??? "Help" can't find it, but has no problem finding "worldToIntrinsic". They both take a spatial referencing object as a parameter. And when I try to invoke worldToSubscript per the documentation, matlab throws an error because the function doesn't exist.

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

채택된 답변

Walter Roberson
Walter Roberson 2019년 9월 5일
edit(fullfile(toolboxdir('images/images'), 'imref2d.m'))
and look at approximately line 275.
This requires the Image Processing Toolbox, R2013a or later.
  댓글 수: 3
Walter Roberson
Walter Roberson 2019년 9월 6일
I just tested in R2019a. At first it could not find either help, but as soon as I asked for it directly it could find it in short form.
help sizesMatch %could not find
help worldToSubscript %could not find
help imref2d/worldToSubscript %okay
help sizesMatch %found it this time
help worldToSubscript %found it this time
That is, MATLAB does not load the class details until the class is referenced once, either by using it in a function or by calling upon help for the class (my testing shows that help imref2d also makes help for the methods available.)
Chris Volpe
Chris Volpe 2019년 9월 6일
That did it! I did a "help imref2d" and THEN a "help worldToSubscript", and it worked! Thanks for solving this mystery!

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Multidimensional Arrays에 대해 자세히 알아보기

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by