Why Import data still does not work with CSV files in R2022a ?

71 ビュー (過去 30 日間)
Pieter Jonker
Pieter Jonker 2022 年 3 月 31 日
コメント済み: Sudipta Ray 2023 年 6 月 16 日
Import CSV files did work in Matlab R2022a. But only once!
After that I got "The import tool does not have acces to read the file"
A very old bug still not solved?

回答 (1 件)

Srijith Kasaragod
Srijith Kasaragod 2022 年 4 月 4 日
I understand that MATLAB throws the error "The import tool does not have access to read the file" when you are trying to import CSV files using the Import tool.
Please try to restore the default path and rehash the toolbox cache by running the following commands and restarting MATLAB:
>>restoredefaultpath
>>rehash toolboxcache
If the issue persists, try the following workarounds:
1) Check whether there are files such as an "h.m" in the current directory. Try importing the file from an otherwise empty directory.
2) You can call the function "load" which can store the file as an array:
>> variable = load(filename)
3) You can also use the function "csvread" to load/import data. However, note that this will not work for empty CSV files.
>> variable = csvread(filename)
Regards,
Srijith.
  1 件のコメント
Sudipta Ray
Sudipta Ray 2023 年 6 月 16 日
Worked like a charm with the restoring and rehashing steps. Thank you, Srijith!

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

カテゴリ

Help Center および File ExchangeEnvironment and Settings についてさらに検索

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by