MATLAB: How to remove quotes from the struct

quotesremovestruc

I have a struct like in the picture (EEG_all.event with 4 fields: type, latency, urevent, duration-each one is 123 rows). How can I remove the quotes from "type"?

Best Answer

If by remove quotes, you mean convert it to numeric format then try
temp = num2cell(str2double({EEG_all.event.type}));
[EEG_all.event.type] = temp{:};