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

Geoff Hayes
Geoff Hayes 2017년 10월 24일
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
Jan 2017년 10월 24일
Explain "can't run live script" with any detail. What do you try exactly?
Lu Han
Lu Han 2017년 10월 24일
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 time when i try to open or create a live script, it went dead.
Guido D'Alessio
Guido D'Alessio 2018년 12월 29일
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
Saud Ur
Saud Ur 2024년 2월 20일
편집: Saud Ur 2024년 2월 20일
i have installed R2015a but there is no live script option in the tool box can someone help me pleasse
Walter Roberson
Walter Roberson 2024년 2월 20일
If I recall correctly, Live Script was introduced in R2015b.

댓글을 달려면 로그인하십시오.

 채택된 답변

Amy
Amy 2017년 10월 26일

3 개 추천

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

Pablo Blinder
Pablo Blinder 2018년 3월 10일
편집: Walter Roberson 2018년 4월 15일
Experiencing problems running Live Scripts if computer is offline. I can't even load the live script. All I get is a chromium (google chrome) -like error page with the following:
This webpage is not available
ERR_NAME_NOT_RESOLVED
The server at localhost can't be found, because the DNS lookup failed. DNS is the network service that translates a website's name to its Internet address. This error is most often caused by having no connection to the Internet or a misconfigured network. It can also be caused by an unresponsive DNS server or a firewall preventing Chromium from accessing the network.
I have tried to reset/flush the DNS service (running on MacOS 10.13.3) with
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
Restarted Matlab (9.1.0.441655 (R2016b)) but still go same error. As a curiosity, if I now connect through my mobile (using it as a hotspot), the Live Script magically loads. Any other form of connection or being offline does not load the Live Script.
Pablo Blinder
Pablo Blinder 2018년 3월 10일
Oh... and one more thing, if you one goes offline, the Live Scripts stops running an a gray box displays the following [cryptic] message: "Message Service Fatally Disconnected".
Jordan Lui
Jordan Lui 2018년 3월 27일
Amy's suggestion of running as Admin worked for me! Running Windows 10 x64, and clicking "New Live Script" button just caused editor to freeze and not respond. Now fixed!
Angelica Parente
Angelica Parente 2018년 4월 15일
편집: Angelica Parente 2018년 4월 15일
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 2018년 4월 20일
I have the same problem, trying to create or read any live scripts
"This webpage is not available ERR_NAME_NOT_RESOLVED:"

댓글을 달려면 로그인하십시오.

추가 답변 (2개)

Andy Meyers
Andy Meyers 2018년 11월 7일

0 개 추천

Resolved this problem. My localhost wouldn't ping on my mac, which was part of the issue.

댓글 수: 1

Adriana Salguero
Adriana Salguero 2018년 11월 13일
Please can you tell me how you fixed the problem?

댓글을 달려면 로그인하십시오.

Reasey
Reasey 2024년 10월 1일

0 개 추천

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

Walter Roberson
Walter Roberson 2024년 10월 1일
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.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Entering Commands에 대해 자세히 알아보기

태그

질문:

2017년 10월 24일

댓글:

2024년 10월 1일

Community Treasure Hunt

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

Start Hunting!

Translated by