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 - The Fusion of Science and Community**

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

Loading...

Similar Threads for Matlab inputs question | Date |
---|---|

MATLAB MATLab: Not enough inputs for nlinfit | Nov 16, 2017 |

[Matlab] Function Handle-user input | Jul 31, 2014 |

Undefined function 'table' for input arguments of type 'double'. | Jun 14, 2014 |

Frisbee flight in Matlab, can't run (Input argument x is undefined) | Mar 21, 2013 |

How to pass a variable input into a function in matlab? | Jul 25, 2012 |

**Physics Forums - The Fusion of Science and Community**