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!