How to load only part of a file in MATLAB

6 visualizaciones (últimos 30 días)
Mayank Jain
Mayank Jain el 4 de Mzo. de 2018
Respondida: javad ebrahimi el 4 de Mzo. de 2018
THIS IS THE FILE AND I WANT TO MAKE A MATRIX OF ONLY THE COLUMNS WITH NUMBERS. IM USING load('filename') but it gives me an error.
  1 comentario
Stephen23
Stephen23 el 4 de Mzo. de 2018
Editada: Stephen23 el 4 de Mzo. de 2018
You cannot use load for this, because that file contains mixed character and numeric data. You will need to use textscan, readtable, or something similar. See:

Iniciar sesión para comentar.

Respuestas (1)

javad ebrahimi
javad ebrahimi el 4 de Mzo. de 2018
HI dear Mayank Jain
you can drag your txt file in Workspace And then click Import selection after making the necessary changes

Categorías

Más información sobre Tables 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