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
encode is a Java method
encode is a Java method
encode is a Java method
/Applications/MATLAB_R2020a.app/toolbox/vision/vision/bagOfFeatures.m
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?