Importing data from outside matlab directory?

조회 수: 6 (최근 30일)
Allen Porter
Allen Porter 2024년 2월 29일
댓글: Rafa 2024년 2월 29일
My students use matlab on chromebooks, how can the import a .txt file from their downloads folder to their matlab directory?
  댓글 수: 1
Rafa
Rafa 2024년 2월 29일
To import a .txt file (or any file/folder) in your MATLAB Online session that is currently in your downloads folder on your local computer, you would need to upload it first to MATLAB Drive or OneDrive. MATLAB Online does not have direct access to your local file system, including your downloads folder, so the file must be in MATLAB Drive or OneDrive to be accessible from MATLAB Online.
These are useful links:

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

답변 (1개)

Star Strider
Star Strider 2024년 2월 29일
Probably the easiest way is to use the fullfile function to generate the complete path to the file. To access other files in the same directory, only the filename then needs to be provided.
To transfer it to a directory on the MATLAB path, use the copyfile function.

카테고리

Help CenterFile Exchange에서 File Operations에 대해 자세히 알아보기

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by