function of readtable in matlab
4 次查看(过去 30 天)
显示 更早的评论
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?
0 个评论
采纳的回答
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 File Name Construction 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!