Cell elements as comma separated input arguments for varargin function
问题 Imagine a function with a variable number of input arguments, alternately asking for a string and a value. myfunction('string1',value1,'string2',value2,...) e.g. myfunction('A',5,'B',10) I want to keep the ability to call the function like that and I dont want to change the evaluation of varargin inside the function. (Except ('string1','string2',...,value1,value2,...) if that helps) But I also have my input strings and values stored in a cell array inputvar <4x1 cell> : inputvar = 'A' [5] 'B'