How to load only part of a file in MATLAB

12 vues (au cours des 30 derniers jours)
Mayank Jain
Mayank Jain le 4 Mar 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 commentaire
Stephen23
Stephen23 le 4 Mar 2018
Modifié(e) : Stephen23 le 4 Mar 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:

Connectez-vous pour commenter.

Réponses (1)

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

Catégories

En savoir plus sur Data Import and Analysis dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by