Creating function with two vector inputs?

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?

Antworten (1)

Sean de Wolski
Sean de Wolski am 27 Okt. 2014

0 Stimmen

2 Kommentare

Kam
Kam am 15 Feb. 2023
I am still confused. Could you provide more context?
Torsten
Torsten am 15 Feb. 2023
Bearbeitet: Torsten am 15 Feb. 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

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Mathematics finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 27 Okt. 2014

Bearbeitet:

am 15 Feb. 2023

Community Treasure Hunt

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

Start Hunting!

Translated by