Problems opening documentation examples in Matlab Online

I have access to Matlab Online via a Matlab Home license.
Issue: Many example scripts/LiveScripts in Matlab docs do not open in the Online session
Steps causing error:
1) Connect to Matlab Online
2) Look up something in the Help box --> Documentation window pops up
3) Drill down until "Open in Matlab Online" button shows and click
4) Matlab Online prompts to disconnect existing session and open up a new one: Selecting No means progress is stopped. Selecting Yes kills the existing Online session and opens a new one
5a) Occasionally, a LiveScript comes up and can be run
5b) This issue: More often, I'll be taken to a Cloud Directory with a Livescript in it but the script will not load. If 5a) does work once, a subsequent lookup will fail as described. Sample error on manually loading LiveScript from the Cloud Directory:
/MATLAB Drive/Examples/R2021b/matlab/CreateDatastoreforTextDataExample
Double click on CreateDatastoreforTextDataExample.mlx
Error using open (line 143)
Failed to open MATLAB Editor.
Expected behavior:
A) Matlab Online recognizes that the request comes from a valid Matlab Online session and opens the script within that session. Losing a session and workspace to try a documentation example does not make sense. This does not happen in the Desktop Home Edition, for example
B) If the session has to be killed and a new one started, that the new session will run the requested script or LiveScript
Thigs I have tried:
  • Searched the Answers site with a few different terms
  • Clearing browser cache and cookies + restarting
  • Disabling all ad and script blockers
  • Reproduced on Edge, Firefox, Vivaldi (Chrome based), Safari
  • Compared to Home Edition Desktop behavior

5 Comments

Update/Workaround:
The problem is with help docs found in Matlab Online via the Seach Box (upper right hand corner) if the doc command hasn't been invoked. The results window that comes up shows "Open in Matlab Online" with a link below to the actual Matlab command. Clicking on the button tries to start a new Matlab Online session, losing the existing workspace, and then not always opening the requested example.
But, issuing the same request from the Command Line; e.g. doc [topic] brings up a results window that shows "Open LiveScript" with no link underneath. The LiveScript button works as expected and allows running the example without losing the workspace. From then on, searching by either method results in the LiveScript option until cache/cookies are cleared.
Reported to TMW as a bug.
Thanks for posting an update. We got the bug report. We will let you know how things are going. Thanks for repoting the bug and reaching out.
same thing w me. my work has gone...
I tried opening a new session of Matlab online and it worked for me! I suggest you try the same.

Sign in to comment.

Answers (0)

Categories

Products

Release

R2021b

Asked:

on 27 Sep 2021

Commented:

on 21 Nov 2021

Community Treasure Hunt

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

Start Hunting!