PDA

View Full Version : function with 'n' number of inputs(matlab


buildingblocs
Apr4-11, 04:43 AM
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.

jhae2.718
Apr4-11, 08:17 AM
Use a vector as the input.