Unable to run a live script

111 visualizaciones (últimos 30 días)
Lu Han
Lu Han el 24 de Oct. de 2017
Comentada: Walter Roberson el 1 de Oct. de 2024
I installed R2017a at first and it can't run live script then i unstalled R2017a and installed R2017b and it still can't run live scipt. What is wrong with my laptop or the system? Can someone please answer this? I mean that I can create or open .m file but I cannot open or create .mlx file on my matlab. Once it says i cannot use live editor on my system, but my system is just win10. most of the time when i try to open or create a live script, it just went dead.
  6 comentarios
Saud Ur
Saud Ur el 20 de Feb. de 2024
Editada: Saud Ur el 20 de Feb. de 2024
i have installed R2015a but there is no live script option in the tool box can someone help me pleasse
Walter Roberson
Walter Roberson el 20 de Feb. de 2024
If I recall correctly, Live Script was introduced in R2015b.

Iniciar sesión para comentar.

Respuesta aceptada

Amy
Amy el 26 de Oct. de 2017
Hi Lu,
I have a few suggestions for you:
1. Make sure you have write access to the temporary directory that MATLAB is using. To get the path to this directory, you can execute the following command in the MATLAB command window:
>> tempdir
If the issue is related to permissions, you could also try running MATLAB as administrator and see if that lets you open live scripts.
2. Regenerate preferences for the version of MATLAB you are using. For steps on how to do this, please see this MATLAB answers post.
Restart MATLAB after making these changes and see if you can read live scripts then. If not, could you be more specific about what you mean by it 'went dead'?
  5 comentarios
Angelica Parente
Angelica Parente el 15 de Abr. de 2018
Editada: Angelica Parente el 15 de Abr. de 2018
I'm having the same annoying issues on mac os 10.13.3, seemingly randomly matlab will freak out and multiple "message service fatally disconnected" popup messages will show up. Also this seems like a separate issue, but sometimes when I try to open the Color window to change the color of a plot, it takes a very long time to load and eventually the Color window just says "This webpage is not available ERR_NAME_NOT_RESOLVED:"
This has happened both with and without livescripts running. Wondering if its related to google drive somehow?
Zhaojie Yao
Zhaojie Yao el 20 de Abr. de 2018
I have the same problem, trying to create or read any live scripts
"This webpage is not available ERR_NAME_NOT_RESOLVED:"

Iniciar sesión para comentar.

Más respuestas (2)

Andy Meyers
Andy Meyers el 7 de Nov. de 2018
Resolved this problem. My localhost wouldn't ping on my mac, which was part of the issue.
  1 comentario
Adriana Salguero
Adriana Salguero el 13 de Nov. de 2018
Please can you tell me how you fixed the problem?

Iniciar sesión para comentar.


Reasey
Reasey el 1 de Oct. de 2024
function sphere_vol = sphere(r,h)
sphere_vol = 2*pi*r^2*h/3;
r = input('Enter the radius:');
h = input('Enter the height:');
volume = sphere(r,h);
fprintf('The volume of the sphere is %.3f\n',volume)
  1 comentario
Walter Roberson
Walter Roberson el 1 de Oct. de 2024
What is the point of using a passed-in r and h in calculations, and then to prompt for r and h and call sphere() recursively ?
MATLAB has no way of knowing that you ended the sphere() function and began a script file -- not unless you insert an end statement matching the end of the function definition.
Note: it is quite new to be able to place a script after the end of a function definition. Before this, you would need to define the function after the end of the script.

Iniciar sesión para comentar.

Categorías

Más información sobre File Operations en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by