regex - regexprep doubt in matlab -


z = {'a'; 'b'; 'c'};  z=regexprep(z,'a','1');  z=regexprep(a,'b','2');  z=regexprep(a,'c','3');  xlswrite('data.xls', a); 

the data in data.xls become 49 50 51. why data not 1 2 3?

this should read:

z = {'a'; 'b'; 'c'};  z=regexprep(z,'a','1');  z=regexprep(z,'b','2');  z=regexprep(z,'c','3');  xlswrite('data.xls', z); 

note zs in last 3 lines have as.


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -