Specify file path problem

9 vues (au cours des 30 derniers jours)
Nick Ward
Nick Ward le 3 Mar 2017
Commenté : Sindhu Sindhu le 25 Mai 2023
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

Réponse acceptée

Chad Greene
Chad Greene le 3 Mar 2017
On my Mac it's Users (plural), not User. Is that the issue?
  7 commentaires
Image Analyst
Image Analyst le 24 Mai 2023
@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 le 25 Mai 2023
still there is a error in loading files. How to load matfiles which is in a folder in macbook? please help.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur File Operations dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by