MATLAB calls wrong "encode"-function

조회 수: 3 (최근 30일)
Robin Pape
Robin Pape 2020년 9월 25일
댓글: Robin Pape 2020년 9월 25일
I want to call the encode-function from Computer Vision Toolbox in the file bagOfFeatures.m, but MATLAB always calls the wrong encode-function from Communications Toolbox:
>> which -all encode
/Applications/MATLAB_R2020a.app/toolbox/comm/comm/encode.m
encode is a Java method % org.apache.commons.codec.binary.Base64 method
encode is a Java method % org.apache.commons.codec.BinaryEncoder method
encode is a Java method % org.apache.commons.codec.Encoder method
encode is a Java method % java.net.URLEncoder method
/Applications/MATLAB_R2020a.app/toolbox/vision/vision/bagOfFeatures.m % bagOfFeatures method
If I call the bagOfFeatures-function prior to the encode-function it works, but I created my bag once, saved it as a .mat-file and now load it without calling bagOfFeatures.
How can I tell MATLAB explicitly which encode-function I want to call?
  댓글 수: 1
Robin Pape
Robin Pape 2020년 9월 25일
Nevermind, I just realised that the bag was loaded as a struct.
When I correctly load it as a bagOfFeatures-object, MATLAB finds the correct function.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by