Can't load file from path (MacOS) ?

52 ビュー (過去 30 日間)
Herbert Middleton
Herbert Middleton 2022 年 7 月 18 日
コメント済み: Abderrahim. B 2022 年 7 月 18 日
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
  2 件のコメント
Herbert Middleton
Herbert Middleton 2022 年 7 月 18 日
Thank-you so much!
Abderrahim. B
Abderrahim. B 2022 年 7 月 18 日
My pleasure.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by