Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
Row selection from Cell contains 417 *11 elements
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
I have an excel file. I read using xlsread and the variable named alldata contains 417*11 in cell format. Here I want to select only 178 rows which depends on the first column of the cell contains 'OAS1_0001_MR1'
'OAS1_0002_MR1'
'OAS1_0003_MR1'
'OAS1_0004_MR1'
'OAS1_0005_MR1'
'OAS1_0006_MR1'
'OAS1_0007_MR1'
'OAS1_0009_MR1'
'OAS1_0010_MR1'
'OAS1_0011_MR1' etc.
Can anyone please help me to find a solution. Thanks in Advance.
2 Kommentare
Jan
am 22 Jul. 2015
The question is not clear: How do you decide which rows are wanted and which are not? What is the pattern?
Antworten (1)
Walter Roberson
am 23 Jul. 2015
tf = ismember(DataFromExcel(:,1), 'OAS1_0001_MR1');
subset = DataFromExcel(tf,:);
0 Kommentare
Diese Frage ist geschlossen.
Siehe auch
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!