Live script: warning could not find appropriate function on path

I am editing a live script from my labmate with MATLAB 9.3.0.713579 (R2017b) on an Ubuntu 17.10 machine. I receive the following error once I run the live script.
load('data')
Warning: Could not find appropriate function on path loading function handle C:\Users\Tom\AppData\Romaing\MathWorks\R2017a\Editor\LiveEditorEvaluationHelperE571740976.mlx>@(data,alpha,x_min) ((data./x_min).^(1-alpha))
The remaining live script executes without error, but I am not sure how to resolve this problem.
Thank you

8 Comments

Is that your account shown, "Tom", or is it your labmates?
I notice that it refers to "Romaing" instead of to "Roaming"
Tom is my labmate. I typed it out the path myself because I couldn't highlight the line within the live script to copy and past.
Hmmm, for whatever reason, LiveScript created a function named LiveEditorEvaluationHelperE571740976.mlx and put a hard-coded path reference in the file.
The easiest way to get around the error is to locate that LiveEditorEvaluationHelperE571740976.mlx file and create C:\Users\Tom\AppData\Romaing\MathWorks\R2017a\Editor on your machine and store the file there.
I am not quite clear as to what is stored in data.mat that might trigger the issue? Perhaps your labmate did a "save" without specifying variable names at a time when they happened to have a reference to a graphics object in their workspace.
I am also curious about the cause of the error. However, I tried what you suggested and created the empty file LiveEditorEvaluationHelperE571740976.mlx, saved the file in C:\Users\Tom\AppData\Roaming\MathWorks\MATLAB\R2017a\Editor\ then the warning went away.
So I am on Ubuntu so the "$" is my bash shell and ">>" is my MATLAB command line.
$ mkdir "C:\Users\Tom\AppData\Roaming\MathWorks\MATLAB\R2017a\Editor\/"
>> edit LiveEditorEvaluationHelperE571740976.mlx
>> load('data')
Heh, good trick using a file name with embedded \ characters.
Haha, thanks. If you want credit for the answer copy and paste your comment into the answer. Otherwise, I think an editor will promote the comment as the solution. Thank you for the help!
The editors do not have tools to convert a Comment into an Answer. We remind Mathworks from time to time that we could use something like that...

Sign in to comment.

 Accepted Answer

Hmmm, for whatever reason, LiveScript created a function named LiveEditorEvaluationHelperE571740976.mlx and put a hard-coded path reference in the file.
The easiest way to get around the error is to locate that LiveEditorEvaluationHelperE571740976.mlx file and create C:\Users\Tom\AppData\Romaing\MathWorks\R2017a\Editor on your machine and store the file there.

More Answers (0)

Asked:

on 6 Feb 2018

Commented:

on 7 Feb 2018

Community Treasure Hunt

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

Start Hunting!