Creating function with two vector inputs?

3 visualizaciones (últimos 30 días)
Ruby
Ruby el 27 de Oct. de 2014
Editada: Torsten el 15 de Feb. de 2023
I'm very new to matlab and do not understand ANY of this question!
"create a function that requires two vector inputs- the mass and molecular weight- and returns the corresponding number of moles"
any help or advice please?

Respuestas (1)

Sean de Wolski
Sean de Wolski el 27 de Oct. de 2014
  2 comentarios
Kam
Kam el 15 de Feb. de 2023
I am still confused. Could you provide more context?
Torsten
Torsten el 15 de Feb. de 2023
Editada: Torsten el 15 de Feb. de 2023
What are you confused about ? How to write a function with two vector inputs and one vector output ?
function N = mass_to_moles(M,MM)
N = M./MM;
end

Iniciar sesión para comentar.

Categorías

Más información sobre Get Started with MATLAB en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by