how do i do this problem?

Write a function M-file called par_res that
– takes as input two resistor values (say R1 and R2), and
– outputs the equivalent resistance, say R_eq, if the two resistors are in parallel.

2 comentarios

MEHABOOBSUBANI GULEDKOPP
MEHABOOBSUBANI GULEDKOPP el 12 de Oct. de 2018
Editada: MEHABOOBSUBANI GULEDKOPP el 12 de Oct. de 2018
function R_eq = par_res(R1,R2)
R_eq = R1*R2/(R1+R2);
end
Kamran Salehi
Kamran Salehi el 12 de Oct. de 2018
do you know how I can do that with a test script and function script?

Respuestas (0)

La pregunta está cerrada.

Etiquetas

Preguntada:

el 12 de Oct. de 2018

Cerrada:

el 12 de Oct. de 2018

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by