Hallo
i have a function with input arguments like
function FUNC(x,y)
and trying to work with struct fields within the function. I can load it with:
load(['Struct_Nr' num2str(x)]);
but i cant adress the fields using x, y
ans = mean(['Struct_Nr' num2str(x) 'Field_Nr' num2str(y)]) %does not work for example
I need char to variable or something like that.
Best Answer