matlab online supports reading local files?

조회 수: 23(최근 30일)
cui
cui 2021년 10월 28일
댓글: Walter Roberson 2021년 10월 29일
It would be good if matlab online could support reading local files in the future, because even using MATLAB Drive Connector to synchronize thousands of images to matlab drive is very painful, tens of thousands of images take up a lot of drive space and synchronization is time-consuming.
If all the images are compressed and uploaded, it is very fast, but using unzip function in matlab online to decompress them, it will take longer and even fail.
  댓글 수: 1
cui
cui 2021년 10월 29일
편집: cui 2021년 10월 29일
I found that VScode CodeSpaces supports local file access, and I hope that matlab online will support it perfectly in the future.

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

답변(1개)

Walter Roberson
Walter Roberson 2021년 10월 28일
I do not think that is likely to happen. MATLAB Online only has whatever access to local drives that javascript sent to the browser has, but for security reasons, javascript only has access to files when there is individual user action to make the file available. The file browsers to select what to upload are not just user choice interfaces: they are also mediating permission; javascript is not permitted to access any file that user did not select through the user choice interfaces.
It would be a very bad security idea for websites to be able to silently upload any file they can guess the name of.
MATLAB Online is deliberately designed as a limited resource. If you are working with tens of thousands of images using MATLAB Online, then you are using it beyond the designed resource limits.
MATLAB offers cloud computing with increased resources: https://www.mathworks.com/solutions/cloud.html
  댓글 수: 2
Walter Roberson
Walter Roberson 2021년 10월 29일
Still requires that the user goes through a picker. It does, however, allow a user to pick a directory.
Only supported on Edge and Google Chrome. There is precedent that sound from Online is only supported for Chrome. However, should circumstances arise in which Mathworks were to be headed to only supporting Chrome + Edge for access to Online, then I would firmly argue against a development. (Read the reports about the unredacted lawsuits against Google in the US by several states... it involves pretty serious allegations that Alphabet is manipulating to force the market to use only Chrome technology because doing so would allegedly give Alphabet advertising market advantages.)

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

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by