How to stop Matlab online from automatically logging out

Hello,
I just started working with Matlab online (matlab.mathworks.com). I realized that Matlab online will automatically log out when it is in "unattended" or when I minimized the browser although it is running a code. Then I have to run everything again. Could you please show me how to stop it from logging out.
Thank you very much.
Ngoan

2 Comments

As usual. More disappointment from matlab.
Refer to my answer in the thread of 1st answer, it works by @Anusha Sridharan

Sign in to comment.

 Accepted Answer

Currently, there is no way of controlling this behavior on MATLAB Online. As per the latest version, if you leave your session idle for more than 55 minutes, it times out. It is recommended to use the desktop version of MATLAB, to execute scripts that take longer than 15 minutes to run.

11 Comments

Thank you very much for your kind response. I wanted to try MATLAB online to see if it is faster than my old a slow computer. Now I understand, I will go back to use the desktop version then.
Thanks again.
Could you eloborate about the usecases of Matlab online - which research, academic or programming usecases would this Matlab online be useful 15 mins session time is a mandate?
MATLAB Online permits me to run MATLAB code while I am on my cell phone. I sometimes relax with my cell phone for a fast 4 or 5 hours of answering Questions away from my desktop.
But other than that... MATLAB Online is useful for students (and researchers) to be able to run MATLAB without having to install it on their own system.
MATLAB Online is not intended for intensive computation: there are other cloud computing facilities such as using MATLAB with AWS. But it is useful to be able to run MATLAB for a mix of "not so long" computations together with interactive discovery or development. You could, for example, make productive use of it during the design and debugging phases of your project, and then only when you know that your code is basically running would you go for an extra-cost system such as AWS.
there is a way, just run this command in the console in online matlab window, this is a javascript function which will click on the matlab body after 10 minutes automatically so that your session won't be timed out, 600000 means 600 seconds
use ctrl+shift+i to inspect and go to console
function clickonBody(){
console.log("Clicked on body");
document.body.click()
}
setInterval(clickonBody,600000)
function clickonBody(){
console.log("Clicked on body");
document.body.click()
}
setInterval(clickonBody,600000)
How do I do it in Mac? It is giving error to me
The details are going to depend upon which browser you are using.
For example for Firefox you might need to use ⌥ ⌘I in order to bring up the console.
@Walter Roberson Thank you so much. I got the console but the java script returned error. Thanks anyway
Hi Anusha
So after how long will you be allowed in again. Because I was going through self paced course and when i try to resume the course, it wants me to log again. How long will take to reset this?

Sign in to comment.

More Answers (0)

Communities

More Answers in the  Distance Learning Community

Categories

Community Treasure Hunt

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

Start Hunting!