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?
回答(1 个)
Sean de Wolski
2014-10-27
0 个投票
This should help you getting started.
2 个评论
Kam
2023-2-15
I am still confused. Could you provide more context?
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
类别
在 帮助中心 和 File Exchange 中查找有关 Mathematics 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!