How to load only part of a file in MATLAB

12 views (last 30 days)
Mayank Jain
Mayank Jain on 4 Mar 2018
Answered: javad ebrahimi on 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 Comment
Stephen23
Stephen23 on 4 Mar 2018
Edited: Stephen23 on 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:

Sign in to comment.

Answers (1)

javad ebrahimi
javad ebrahimi on 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

Categories

Find more on Data Import and Analysis in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!