MATLAB Function with 'n' number of inputs(matlab

  • Thread starter Thread starter buildingblocs
  • Start date Start date
  • Tags Tags
    Function
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.
 

Similar threads

Replies
2
Views
3K
Replies
2
Views
2K
Replies
3
Views
2K
Replies
12
Views
2K
Replies
1
Views
4K
Replies
3
Views
2K
Back
Top