For example, there is a function f = @(x, y, z)x+y+z; and is the vector of input values par = [x1; y1; z1] par = [x1; y1; z1] par = [x1; y1; z1] , is it possible to somehow convey this vector as a parameter, but what would it be perceived as the values ​​of the arguments, and not the vector of points at which the function should be calculated?

    1 answer 1

    You need the num2cell function:

     tmp = num2cell(par) f(tmp{:}) 

    See Splice vector into arguments for function call .

    • Thanks It works. - Artemiy Kotelevich