How do I load a file from my desktop to my workspace?

조회 수: 54 (최근 30일)
Victoria Helm
Victoria Helm 2020년 6월 30일
편집: Gurpreet Singh 2020년 6월 30일
I'd like to, well load a file from my desktop to my workspace. Is there an ideal way to do this?

답변 (2개)

Reeshabh Kumar Ranjan
Reeshabh Kumar Ranjan 2020년 6월 30일
load('full/path/to/file', 'variable1', 'variable2');
  댓글 수: 1
Reeshabh Kumar Ranjan
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
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');

카테고리

Help CenterFile Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by