How can I open a .txt file from a cell in excel through matlab.

1 次查看(过去 30 天)
I have an excel file which will be for user input one of the inputs is a filename (i.e. filename.txt) in a cell in excel. I will then use matlab's xlsread command to read the sheet of inputs and I want to use dlmread('filname.txt') to read a separate .txt file which is just a list of numbers. Is this possible?

采纳的回答

Walter Roberson
Walter Roberson 2018-10-28
[~, ~, raw] = xlsread('AppropriateFilenameGoesHere.xls');
filename = raw{17, 42}; %choose appropriate location
data = dlmread(filename);

更多回答(0 个)

产品


版本

R2015b

Community Treasure Hunt

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

Start Hunting!

Translated by