Removing a particular column from multiple large datasets.

8 Ansichten (letzte 30 Tage)
Eoin Lyden
Eoin Lyden am 12 Okt. 2020
Kommentiert: Eoin Lyden am 12 Okt. 2020
I am importing multiple large datasets to carry out analysis. One of the columns in each imported file is preventing me from analysis carrying out analysis.
I want to remove that column (In my case it's column 1) from all of the datasets. Multiple files are being imported at once using a test list.
for i = length(testlist.data)
DataIn1 = importdata([FolderINPUT1 '\' FilesList1(testlist.data(i,1)).name], '\t' );
end
I want to remove all of column 1 for every file which has been imported, can anyone help me with this?

Antworten (1)

KSSV
KSSV am 12 Okt. 2020
If A is your matrix....to remove first column.
A(:,1) = [] ;
  8 Kommentare
KSSV
KSSV am 12 Okt. 2020
Can you tell ...how
data = importdata(myfile) ;
looks like?
Also read about readmatrix, textscan.
Eoin Lyden
Eoin Lyden am 12 Okt. 2020
data = importdata(myfile); is shown above in the original question.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Language Support 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