文章参考:http://cn.mathworks.com/help/matlab/matlab_prog/generate-field-names-from-variables.html?refresh=true
>> currentDate = datestr(now,'mmmdd');
myStruct.(currentDate) = [1,2,3]
myStruct =
Mar09: [1 2 3]
>>
文章参考:http://cn.mathworks.com/help/matlab/matlab_prog/generate-field-names-from-variables.html?refresh=true
>> currentDate = datestr(now,'mmmdd');
myStruct.(currentDate) = [1,2,3]
myStruct =
Mar09: [1 2 3]
>>