function of readtable in matlab

4 ビュー (過去 30 日間)
ali hassan
ali hassan 2022 年 1 月 27 日
回答済み: Rik 2022 年 1 月 27 日
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 日
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 件)

カテゴリ

Help Center および File ExchangeFile Name Construction についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by