How to load only part of a file in MATLAB

조회 수: 8 (최근 30일)
Mayank Jain
Mayank Jain 2018년 3월 4일
답변: javad ebrahimi 2018년 3월 4일
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