Can't load file from path (MacOS) ?

52 次查看(过去 30 天)
Feel stupid for asking this question, but I can't find a solution. I want to load a file from another folder (other than the "Current Folder") in my script and I can't seem to do it.
When I obtain the path location from "Get Info" on my Macbook, it is: "/Users/herbertmiddleton/Desktop/UA/ SEMESTRE 4/ THESIS/WRITING/(v) Review Article". The specific file name is "Bioprinting WOS.txt".
However, when I try to load the data in MATLAB, either by:
graph=load('/Users/herbertmiddleton/Desktop/UA/ SEMESTRE 4/ THESIS/WRITING/(v) Review Article/ Graphs/Bioprinting WOS.txt')
%or
graph2=load('Macintosh HD/Users/herbertmiddleton/Desktop/UA/ SEMESTRE 4/ THESIS/WRITING/(v) Review Article/ Graphs/Bioprinting WOS.txt')
The following error messages appear:
Error using load
Unable to read file 'Macintosh HD/Users/herbertmiddleton/Desktop/UA/ SEMESTRE 4/ THESIS/WRITING/(v) Review Article/ Graphs/Bioprinting
WOS.txt'. No such file or directory.
Error in untitled2 (line 4)
graph=load('Macintosh HD/Users/herbertmiddleton/Desktop/UA/ SEMESTRE 4/ THESIS/WRITING/(v) Review Article/ Graphs/Bioprinting WOS.txt')
Can anyone help? Thank-you!

采纳的回答

Abderrahim. B
Abderrahim. B 2022-7-18
Hi
Bioprinting WOS.txt file name has a space in between. LOad function will not work in this case.
You can rename the file to Bioprinting_WOS.txt.
hope this helps

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

产品


版本

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by