How can you take a cell array array of fieldnames and a cell array of values, and convert them into a structure without looping?
names = {'f1', 'f2'};values = {1 2};structure = struct(???)
cellMATLABone-linerstructstructure
names = {'f1', 'f2'};values = {1 2};structure = struct(???)
Best Answer