clear allFName = {'Data1','Data2','Data3'};data1 = [rand(32,1),rand(32,1),rand(32,1)];NewName = {'Location1'};Location1 = struct('Data1',data1)
From this example how is it possible to adapt the script so that instead of typing 'Location1' as the name of the structure, can that be defined from 'NewName' i.e. defining the name of the structure from a pre-defined string?
Best Answer