MATLAB: How to remove double quotes from a field

MATLABr2017b

I have a structure dataMtb which contains a field genes. The field is a cell array having dimension of 4109*1 and contains double-quoted alphanumeric content in each cell. I need to remove the quotes from all the cells. (e.g. "Rv001c" —> Rv001c). I am attaching the structure file for reference.

Best Answer

S = load('dataMtb.mat') ;
str = S.dataMtb ;
str.gene = cellfun(@char,str.gene,'un',0) ;
Related Question