Filter löschen
Filter löschen

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

2 Ansichten (letzte 30 Tage)
Parthiban C
Parthiban C am 20 Dez. 2017
Beantwortet: Image Analyst am 20 Dez. 2017
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?

Antworten (1)

Image Analyst
Image Analyst am 20 Dez. 2017
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.

Kategorien

Mehr zu File Operations finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by