Hey,
Its completely possible to take the input as a table in MATLAB Function and return it as an output. I have written a code for your reference where I generate a random table, give it as an input in the function, change its value at cell 2 to 0 and return the modified table from the function.
Code: -
function table_output = myfunction(table_input)
table_input{2,2} = 0;
table_output = table_input;
end
t = table(randn(3,1),randn(3,1),'VariableNames',{'X' 'Y'});
output = myfunction(t);
Best Answer