Function with 'n' number of inputs(matlab

  • Context: MATLAB 
  • Thread starter Thread starter buildingblocs
  • Start date Start date
  • Tags Tags
    Function
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 3K views
buildingblocs
Messages
17
Reaction score
1
I want make a function that will calculate the equivalent resistance of resistor in series. I want the function to compute any number of inputs. i.e [output] = function(r1,r2,r3...rn) . How would I accomplish this in matlab.
 
Physics news on Phys.org
Use a vector as the input.