function of readtable in matlab
조회 수: 7 (최근 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!