我正在从不同的Excel文件中读取字符串数据,每个文件包含三列。我合并了列,我想删除匹配数据并按字母顺序排序。我使用下面的代码。它运作良好。但是,数据不按字母顺序排列。这是我的代码
[~,newtext]=xlsread('d1.xlsx');
[~,newtext1]=xlsread('d2.xlsx');
[~,newtext2]=xlsread('d3.xlsx');
[~,newtext3]=xlsread('d4.xlsx');
%%
d1=newtext;
d2=newtext1;
d3=newtext2;
d4=newtext3;
C=vertcat(d1,d2,d3,d4);
%%
for i22=1:size(C,2)
if(strcmp(C{1,i22},'Extracellular_matrix')==1)
for j22=1:size(C,1)-1
Extracellular_matrix(j22,1)=C(j22+1,i22);
end
end
end
[ECM_Node,~,x] =unique(sortrows(Extracellular_matrix(~cellfun('isempty',Extracellular_matrix))));
ECM_Node=cellstr(ECM_Node);
这个问题有人可以提供帮助吗?
这是我的数据:
Extracellular_matrix Apoptosis Inflammation
ABI3BP AAMDC ABCA1
ACHE AARS ABCC8
ADAM10 ABR ADAM10
ADAM15 ACAA2 AGT
C6orf15 ANXA6 F3
CAPG APAF1 FGF2
CAPN1 APBB1 GABPA
CAPN2 APBB2 GAL
CCDC80 APC GCNT2
CCL21 APH1A GJB1
CD151 APH1B HMOX1
CD248 APIP ICAM1
CD36 APLP1 IDO1
CD44 APOH IL13
CDH1 AQP1 IL1A
CDON AR IL1B
COL3A1 ASNS MMP9
COL4A1 ATF2 MYD88
COL4A2 ATF3 NF1
COL4A4 ATF4 NFKB1
COL5A1 ATG4D NOV
提前致谢 输出:
'ABI3BP'
'ACHE'
'ADAM10'
'ADAM15'
'ADAM9'
'ADAMTS1'
'ADAMTS12'
'ADAMTS2'
'ADAMTS3'
'ADAMTS4'
'ADAMTS5'
'ADAMTS9'
'ADAMTSL1'
'ADAMTSL2'
'ADAMTSL3'
'ADGRG1'
'ADGRG6'
'AEBP1'
'AGRN'
'AGT'
'ALB'
'ANGPTL4'
'ANTXR1'
'ANXA2'
'ANXA2P2'
'APBB1'
'APBB2'
'APCS'
'APLP1'
'APLP2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'
'TNFRSF1A'
'TNFRSF1B'
'TNFSF11'
'TNFSF12'
'TNFSF13'
'TP53'
'TP53INP2'
'TPSAB1'
'TTR'
'TWIST1'
'VASP'
'VCAM1'
'VEGFA'
'VTN'
'VWA2'
'VWF'
'WISP1'
'WNT5A'
'WNT5B'
'WWOX'
'ZEB1'
' AAA1'
' ABCC6'
' ACAN'
' ACG2'
' ACVRL1'
' ADAMTS1'
' ADAMTS7'
' ADAMTS9'
' ADIPOQ'
' AGER'
' AI1E'
' AMBN'
' ANGPT2'
' ANTXR2'
' APOE'
' APP'
' ARID1A'
' ARMD1'
' ATP2A2'
' ATS'
' BGLAP'
' BTHLM2'
' CASR'
' CAV1'
' CD44'
' CDA'
' CDGG1'
' CDKN1B'
' CDRB'
' CDTB'
' CFTR'
' CLEC3A'
' CLPX'
' CMM1'
' COH1'
' COL11A1'
' COL11A2'
' COL12A1'
' COL14A1'
' COL18A1'
' COL1A1'
' COL1A2'
' COL27A1'
' COL2A1'
' COL3A1'
' COL4A1'
' COL5A2'
' COL6A1'
' COL6A2'
' COL6A3'
' COL9A1'
' COMP'
' CRTAP'
' CTNNB1'
' CXCL12'
' CXCR1'
' CXCR2'
' DAG1'
' DDR1'
' DMD'
' DMD'
' DMP1'
' DSPP'
' ECM2'
' EDSMC1'
' EFEMP1'
' EFEMP2'
' EIF4A3'
' ELMO1'
' EMID2'
' FBLN1'
' FBLN5'
' FBN1'
' FERMT2'
' FGFR1'
' FGFR2'
' FGFR3'
' FN1'
' FOXC2'
' FREM1'
' HELLS'
' HP'
' IGAN1'
' IL1B'
' IL6'
' ITGB1'
' ITGB3'
' ITGB4'
' KAL1'
' KDR'
' KLK4'
' KNDLRS'
' LAD'
' LAMA2'
' LARGE'
' LDS2'
' LGMD2C'
' LMNA'
' LTBP4'
' MADA'
' MATN1'
' MDDGA4'
' MDDGC5'
' MFS'
' MGP'
' MJD'
' MMP1'
' MMP10'
' MMP11'
' MMP13'
' MMP14'
' MMP15'
' MMP16'
' MMP17'
' MMP2'
' MMP20'
' MMP24'
' MMP25'
' MMP3'
' MMP7'
' MMP8'
' MMP9'
' MORC3'
' MRC2'
' MTTL1'
' MVCD1'
' MXRA8'
' MYD88'
' NF1'
' NPR2'
' NTN1'
' NTRK2'
' OI13'
' OI2'
' OI7'
' PAX6'
' PDGFB'
' PKD1'
' PKD1'
' PSACH'
' PTEN'
' PTGS2'
' PTPRF'
' PXDN'
' RHOA'
' RUNX2'
' RUVBL1'
' SCN1B'
' SERPINB7'
' SERPINF1'
' SHH'
' SLC26A2'
' SLC2A10'
' SMA1'
' SMARCA2'
' SMARCA4'
' SMARCA5'
' SMARCB1'
' SMARCE1'
' SMN1'
' SNED1'
' SOD2'
' SPARC'
' SPG7'
' SPP1'
' SRRM1'
' ST14'
' STK11'
' TEK'
' TGFB1'
' TGFB2'
' TGFBI'
' TGFBR1'
' TGFBR2'
' THSD4'
' TIMP2'
' TLR2'
' TLR4'
' TNF'
' TNXB'
' TP53'
' UCMD1'
' UCP2'
' UCP3'
' USH2A'
' USH2C'
' VDR'
' VEGFA'
' VHL'
' VRNI'
' VWF'
' WBS'
' XFS'
' ZEB1'
' ZNF384'