필터 지우기
필터 지우기

How can I load a file whose name is stored in variable?

조회 수: 2 (최근 30일)
Parthiban C
Parthiban C 2017년 12월 20일
답변: Image Analyst 2017년 12월 20일
My file name is available in the cell(1,1) & Cell(1,1)= Temperature.txt. How can i load the file using the variable name stored in the cell? load(cell(1,1)) not working?

답변 (1개)

Image Analyst
Image Analyst 2017년 12월 20일
Note that dir() returns a structure array, NOT a cell array. Also note the use of fullfile() inthe FAQ code. Also change the FAQ to use *.csv for the file pattern since that is what you want.

카테고리

Help CenterFile Exchange에서 File Operations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by