I am having problems putting multiple inputs into a function file. This is what I have.(adsbygoogle = window.adsbygoogle || []).push({});

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

**Physics Forums | Science Articles, Homework Help, Discussion**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Matlab inputs question

**Physics Forums | Science Articles, Homework Help, Discussion**