Passing vector input into MATLAB function - Stack Overflow
https://stackoverflow.com/questions/58167110To call the function, including whatever number you like, you can enter on the Matlab command window (for example), myFunction ( [1 2 3], [4 5 6], [7 8 9]) and the code in your function will be called with the x variable set to the vector [1,2,3], the y variable set to [4,5,6] and z to [7,8,9]. The use of commas to delineate values is optional.
Passing vector input into MATLAB function - Stack Overflow
stackoverflow.com › questions › 58167110To call the function, including whatever number you like, you can enter on the Matlab command window (for example), myFunction([1 2 3],[4 5 6],[7 8 9]) and the code in your function will be called with the x variable set to the vector [1,2,3], the y variable set to [4,5,6] and z to [7,8,9]. The use of commas to delineate values is optional.