can anyone please explain me the following command?
A = readtable(fullfile(pathname,filename));
is this command used when i want to give a different path than matlab path?

 採用された回答

Rik
Rik 2022 年 1 月 27 日

0 投票

You are misunderstanding what the Matlab path is. The Matlab path is where Matlab will look for functions. As a bonus you will also find normal files that way. You should not rely on that, especially not when writing a GUI.
The fullfile function can be used to create a complete file name including the path. That way you unambiguously refer to a specific file and the current folder and/or the Matlab path are irrelevant.

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeDates and Time についてさらに検索

タグ

質問済み:

2022 年 1 月 27 日

回答済み:

Rik
2022 年 1 月 27 日

Community Treasure Hunt

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

Start Hunting!

Translated by