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!
0 个评论
采纳的回答
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 Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!