Vectors and Sum operation
Mostrar comentarios más antiguos
Trying to use sum to figure about resistor formula, 1/[(1/r1)+1rn)] where n can be any number.
What i have come up with:
function R = scirpt(y)
R = 1/sum(1/(y));
end
Well be entering this:
scirpt([100,200,300]) should output 54.5455
if true
% code
end
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Stair Plots en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!