Matlab R2015a Autocomplete does not work for variables when calling a function

4 views (last 30 days)
The autocomplete (tab) works fine in the command window for variable names. If I type
>>myvariab
and hit tab, it will autocomplete to
>>myvariablename
However, if I do the same within a function call, like
>>plot(myvari
I get the little message "No Completions Found" when I press the tab-key.
I recently changed to Windows 8.1. and installed Matlab R2015a. I never had issues with autocomplete on Windows 7 and Matlab R2013.
Can anybody explain me how to turn on the autocomplete inside function calls?

Accepted Answer

Abhishek Pandey
Abhishek Pandey on 20 Jul 2015
Hi Sara,
I tried to reproduce your issue on the same configuration (R2015a on Windows 8.1), but I was not able to. But here are a few suggestions that might help you.
1. To make sure that the issues that you are facing are not resulting from MATLAB code path, execute the following commands in MATLAB command prompt and retry using tab completion.
restoredefaultpath
rehash toolboxcache
If the issue still persists after the execution of the commands above, try the next suggestion.
2. Execute the following command:
which –all strsplit
There should only be one entry for “strsplit”. If there are multiple entries, the function might be in conflict with another one of the same name from a different toolbox not provided by MathWorks. Uninstalling this toolbox or renaming the function could fix this issue.
3. Tab completion can also stop working if your 'TC.xml' file has become corrupted or was incorrectly modified. This can sometimes happen when you install third-party toolboxes (those not made by MathWorks) into MATLAB. To fix the problem, restore your 'TC.xml' file back to its original state.
To determine the installation location of your 'TC.xml' file, execute the following line of code at the MATLAB command line:
which TC.xml
If you need a working copy of 'TC.xml' that corresponds to your particular version of MATLAB, you can contact technical support.
I hope this helps!
- Abhishek
  1 Comment
Sara Brunner
Sara Brunner on 21 Jul 2015
Hi Abishek, Step 1 didn't help and I couldn't find a corrupt file in step 3. However, step 2 revealed that I had two strsplit files, but I obviously deleted the wrong one first. So I ended up re-installing Matlab (after I removed an old toolbox from my personal Matlab path). Now everything works fine (with a single strsplit file). Thanks a lot for your help.

Sign in to comment.

More Answers (0)

Categories

Find more on Install Products in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!