- #1
PieceORock
- 2
- 0
I am having problems putting multiple inputs into a function file. This is what I have.
function y = my_func1(r ,V)
y=6.28.*r.*V;
When I try to use this function, it says:
? Input argument "V" is undefined.
Switching r and V gives the same error, but it is always the second variable that throws the error. If anybody knows if I am putting this in wrong, please let me know
function y = my_func1(r ,V)
y=6.28.*r.*V;
When I try to use this function, it says:
? Input argument "V" is undefined.
Switching r and V gives the same error, but it is always the second variable that throws the error. If anybody knows if I am putting this in wrong, please let me know