Effacer les filtres
Effacer les filtres

function of readtable in matlab

7 vues (au cours des 30 derniers jours)
ali hassan
ali hassan le 27 Jan 2022
Réponse apportée : Rik le 27 Jan 2022
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?

Réponse acceptée

Rik
Rik le 27 Jan 2022
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.

Plus de réponses (0)

Catégories

En savoir plus sur File Name Construction dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by