Unable to run a live script
Mostrar comentarios más antiguos
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
Geoff Hayes
el 24 de Oct. de 2017
Lu - please clarify what you mean by live script. Are you running a script (or calling a function) from the command line? Are you observing any errors? If so, what are they?
Jan
el 24 de Oct. de 2017
Explain "can't run live script" with any detail. What do you try exactly?
Lu Han
el 24 de Oct. de 2017
Guido D'Alessio
el 29 de Dic. de 2018
i have the same problem. I have the versione 2018b, and if i try tu open a new file "live editor" .mlx matlab stucks. I d like to know why
Walter Roberson
el 20 de Feb. de 2024
If I recall correctly, Live Script was introduced in R2015b.
Respuesta aceptada
Más respuestas (2)
Andy Meyers
el 7 de Nov. de 2018
0 votos
Resolved this problem. My localhost wouldn't ping on my mac, which was part of the issue.
1 comentario
Adriana Salguero
el 13 de Nov. de 2018
Please can you tell me how you fixed the problem?
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
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.
Categorías
Más información sobre Entering Commands en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!