How do I load a file from my desktop to my workspace?
56 ビュー (過去 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 で Interactive Control and Callbacks についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!