Hello guys,
I have a cell array of 700 rows and 2 columns,
The first column have a mixed of strings and integer values like this:
'GALK1' 1
'ERCC2' 1
'PGD' 1
'PLK' 1
0 0
0 0
0 0
0 0
0 0
i write this code but the cells of column 1 didn't show that 0 and only strings , which type i can use that can detect both strings and integers for the same column?
[rowfile1,colfile1]=size(Stages_pathws_genes_counts);fidefile1= fopen('Rec_Stages','wt');fprintf(fidefile1, '%s\t%s\n','Stg1_genes','#Stg1_count');for gfile1=1:size(Stages_pathws_genes_counts) fprintf(fidefile1,'%s\t %d\t',Stages_pathws_genes_counts{gfile1,:}); fprintf(fidefile1,'\t'); fprintf(fidefile1,'\n');endfclose(fidefile1);
Can anyone plz suggest me ?
Best Answer