You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's a bug in the implementation of RKN1210's deval() function. If users are running the code from the MATLAB Compiler Runtime (MCR) environment, line 52 of the original function will fail because the MCR uses a slightly different path structure for the MATLAB implementation of deval. That line needs to be changed to read something like this:
try
cd(fullfile(matlabroot, 'toolbox', 'matlab','funfun')); %works if running MATLAB normally
catch
cd(fullfile(matlabroot, 'mcr', 'toolbox', 'matlab','funfun')); %works if running MATLAB via MCR: mcr\toolbox\matlab\funfun
end
You could also replace the try/catch with a test for deployment (isdeployed()).
The text was updated successfully, but these errors were encountered:
There's a bug in the implementation of RKN1210's deval() function. If users are running the code from the MATLAB Compiler Runtime (MCR) environment, line 52 of the original function will fail because the MCR uses a slightly different path structure for the MATLAB implementation of deval. That line needs to be changed to read something like this:
You could also replace the try/catch with a test for deployment (isdeployed()).
The text was updated successfully, but these errors were encountered: