MATLAB: Do I get errors when using the MATLAB VEX Companion app in R2018b

bestrobotics vexrobotics vexMATLABsimulink

I get the following error after installing the VEX Companion app in MATLAB R2018b and trying to open it from the app menu.
Undefined variable "vexapp" or class "vexapp.getAdditionalExampleCell".
Error in VEXCompanion/getAdditionalExamplesCell (line 273) additionalExamples = vexapp.getAdditionalExampleCell;

Best Answer

This is a known issue with version 16.2.2.0 of the VEX Companion app when installed in MATLAB 2018b. In order to resolve the issue execute the following commands in the MATLAB command prompt or run the attached file:
>>vexpath=which('VEXCompanion','-all');
>>vexpath=replace(vexpath,'VEXCompanion.m','');
>>vexpath=fullfile(vexpath,'resources');
>>addpath(vexpath{1});
>>savepath