I would like to split a cell array of strings and take the first output argument like the following
mycell={'a.1' 'b.2' 'c.3'}'
result1 = cellfun(@(x) strsplit(x,'.'),mycell,'UniformOutput',false)
result = cellfun(@(x) x{1},result1)
Is there a way to do the operation in one line, a.k.a specify argument 1 in the cellfun call?