Hello all: I have been given a script that includes the following code:
hws = get_param(bdroot, 'modelworkspace');hws.DataSource = 'MAT-File';hws.FileName = 'filename_xyz';hws.saveToSource;
The first three lines I understand, but how does the last line work? It is, or appears to be, a function or command, which I would expect to be "saveToSource(hws)" as the usual function syntax (looking at the help for saveToSource). Is there any documentation on this apparent use of the structure field '.' (dot) as a function?
Thanks in advance for any replies.
Best Answer