Borrar filtros
Borrar filtros

prompt the user to select a csv file

13 visualizaciones (últimos 30 días)
isamh
isamh el 9 de Mzo. de 2020
Comentada: isamh el 9 de Mzo. de 2020
I have two CSV files that I want the user to choose. I want to prompt the user to choose file or files needed. how would I do that?
I tried multiple ways and none worked correctly, the files have different length columns but same amount of rows and first two rows are headers and rest are numbers.
code is:
[FileName,PathName] = uigetfile('*.csv','Select the CSV file','MultiSelect','on');
column = numbers(1,:);
for col = 1:length(d)
end

Respuestas (1)

Fangjun Jiang
Fangjun Jiang el 9 de Mzo. de 2020
uigetfile() only picks the file. Use csvread() afterwords
  3 comentarios
Fangjun Jiang
Fangjun Jiang el 9 de Mzo. de 2020
help csvread
isamh
isamh el 9 de Mzo. de 2020
would csvread be after the for loop and contain columns? or would it be col?

Iniciar sesión para comentar.

Categorías

Más información sobre Programming en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by