How to load only part of a file in MATLAB

7 次查看(过去 30 天)
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 个评论
Stephen23
Stephen23 2018-3-4
编辑:Stephen23 2018-3-4
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:

请先登录,再进行评论。

回答(1 个)

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

类别

Help CenterFile Exchange 中查找有关 Tables 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by