To extract data from file

1 visualización (últimos 30 días)
E R SH RAJ Male
E R SH RAJ Male el 1 de Mayo de 2016
Comentada: Azzi Abdelmalek el 1 de Mayo de 2016
I have written code to extract data from txt file.The extracted data values are not same. Attached is code as well as file. I shall be thankful if someone would help me out. Thanks

Respuestas (1)

Azzi Abdelmalek
Azzi Abdelmalek el 1 de Mayo de 2016
a=importdata('Run5.txt',' ',2)
out=a.data
  2 comentarios
E R SH RAJ Male
E R SH RAJ Male el 1 de Mayo de 2016
Out put is required in one column
Azzi Abdelmalek
Azzi Abdelmalek el 1 de Mayo de 2016
Your text file shows multiple columns, if you want one column, use reshape function, or
out=out(:)

Iniciar sesión para comentar.

Categorías

Más información sobre Data Type Conversion en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by