Filter löschen
Filter löschen

reading data from columns of multiple text files

14 Ansichten (letzte 30 Tage)
Sumera Yamin
Sumera Yamin am 7 Jan. 2019
Kommentiert: Sumera Yamin am 8 Jan. 2019
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

Akzeptierte Antwort

Ganesan S
Ganesan S am 7 Jan. 2019
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?

Weitere Antworten (0)

Kategorien

Mehr zu Data Import and Export finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by