How to load only part of a file in MATLAB

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)

HI dear Mayank Jain
you can drag your txt file in Workspace And then click Import selection after making the necessary changes

Asked:

on 4 Mar 2018

Answered:

on 4 Mar 2018

Community Treasure Hunt

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

Start Hunting!