Specify file path problem

7 次查看(过去 30 天)
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