How do I load a file from my desktop to my workspace?
조회 수: 44 (최근 30일)
이전 댓글 표시
I'd like to, well load a file from my desktop to my workspace. Is there an ideal way to do this?
댓글 수: 0
답변 (2개)
Reeshabh Kumar Ranjan
2020년 6월 30일
load('full/path/to/file', 'variable1', 'variable2');
댓글 수: 1
Reeshabh Kumar Ranjan
2020년 6월 30일
I assumed you wanted to load variables from this MATLAB-specific file. Were you looking to load some other file (image, etc)?
Gurpreet Singh
2020년 6월 30일
편집: Gurpreet Singh
2020년 6월 30일
Hi Victoria,
The following command might help you.
load('full path to file\file_name.mat');
For example, I used below command to load a file "test_data.mat" from my desktop to my MATLAB workspace.
load('C:\Users\singh\OneDrive\Pictures\test_data.mat');
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Files and Folders에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!