txt file to matrix

조회 수: 1 (최근 30일)
Nelly
Nelly 2012년 3월 27일
I have already filled the missing values with 0 and I want to create the matrix. how to do this?
Hi there. I have txt file with data (integers). My file has 140 rows with changing number of elements(numbers) (from 6 to 12)in each row. I want to convert this data to matrix. How can you help me? thanks a lot. Nelly

답변 (1개)

Ronald Kaptein
Ronald Kaptein 2012년 3월 27일
Probably very simple, just use:
X=load('file.txt')

카테고리

Help CenterFile Exchange에서 Text Files에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by