This function creates a structure from string containing <name> <value> pairs.
Structure member must be separated by ';' or end-of-lines.
The member assignation can be specified with spaces, '=' and ':'
string: string from which the structure should be extracted. It can
also be a file name, which is then read.
s: structure which contains the named values
>> str=str2struct('Temperature: 200; RV=3; comment something nice');
comment: 'something nice'
Emmanuel Farhi (2020). str2struct (https://www.mathworks.com/matlabcentral/fileexchange/59176-str2struct), MATLAB Central File Exchange. Retrieved .
return unmodified input when not convertible.