MATLAB: How to pass an array as argument to a function; and update the contents of the array and return it to the calling function. how to do it?…Can anyone help me? Thanks in adbvance

arrayfunction

How can I pass an array as argument to a function; and update the contents of the array and return it to the calling function. how do I do it?…Can anyone help me? Thanks in advance

Best Answer

In the caller:
x = myfunction(x);
In your function:
function x = myfunction(x)
x = whatever;
Related Question