필터 지우기
필터 지우기

reading data from columns of multiple text files

조회 수: 14 (최근 30일)
Sumera Yamin
Sumera Yamin 2019년 1월 7일
댓글: Sumera Yamin 2019년 1월 8일
Hi all, my question is a bit basic. I want want to read data of columns and individually store values of each in the form of an array.
Using Load, can successfully read my file but cannot seperate the columns data. Lets say i want to store columns values as x, y and z array, and for second file again as x1, y1, z1.
load ScanB_mp_beamshifted_allsame_oppsign.Scan.001

채택된 답변

Ganesan S
Ganesan S 2019년 1월 7일
Dear Sir,
can you try this?
d=load('data1.txt');
x=d(:,1);
y=d(:,2);
z=d(:,3);
Is this the one are you expecting?

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Import and Export에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by