Suppose I have the structure "structure1" that has 3 fields a, b, c. I pass this structure to a function to perform some operations. I would like to setup the function as follows
function out = function(structure1)% set structure 1 as the default field reference
?command? structure1out = a + b*c;
I am trying to avoid
out = structure1.a + structure1.b*structure.c;
or
a = structure1.a;b = structure1.b;c = structure1.c;out = a+b*c;
I seem to remember there was a command that did this in release 13 but I just cannot remember the command itself.
Thanks for your help,
Eric
Best Answer