How can I open a .txt file from a cell in excel through matlab.
17 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
William Toledo
el 28 de Oct. de 2018
Respondida: Walter Roberson
el 28 de Oct. de 2018
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?
0 comentarios
Respuesta aceptada
Walter Roberson
el 28 de Oct. de 2018
[~, ~, raw] = xlsread('AppropriateFilenameGoesHere.xls');
filename = raw{17, 42}; %choose appropriate location
data = dlmread(filename);
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Spreadsheets en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!