Specify file path problem

조회 수: 11 (최근 30일)
Nick Ward
Nick Ward 2017년 3월 3일
댓글: Sindhu Sindhu 2023년 5월 25일
I am trying to specify a file path on a Mac and I get the following message;
>> data = load('/User/nickward/Desktop/Geostrophyreport/Matlab/profile021.txt'); Error using load Unable to read file '/User/nickward/Desktop/Geostrophyreport/Matlab/profile021.txt'. No such file or directory.
I have tried various combinations of path but none seem to work.
I am a total novice and the threads I have looked at don't seem to resolve the problem.
Thanks

채택된 답변

Chad Greene
Chad Greene 2017년 3월 3일
On my Mac it's Users (plural), not User. Is that the issue?
  댓글 수: 7
Image Analyst
Image Analyst 2023년 5월 24일
@Sindhu Sindhu what do these show in the command window:
dirList1 = dir('/Users/radhekrishna/Library/Mobile Documents')
dirList2 = dir('/Users/radhekrishna/Library/Mobile Documents/com~apple~CloudDocs')
Sindhu Sindhu
Sindhu Sindhu 2023년 5월 25일
still there is a error in loading files. How to load matfiles which is in a folder in macbook? please help.

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

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by