Info
この質問は閉じられています。 編集または回答するには再度開いてください。
function with vectors to calculate chemical concentration
2 ビュー (過去 30 日間)
古いコメントを表示
Hi, I need some help with the a function that I need to write for a chemical exercise.
It has to be a function that calculates the concentration of the different elements depending on the time.
The function gets 4 parameters : starting_concentration, k1, k2, derivative and it returns the vectors of the different concentrations.
Two chemical reactions are given, the strating_concentration k1 and k2 are also given.
I have to define zero vectors which will include the concentration of each element of the reactions.
Each element of the vectors represents the concentration at a specific time (the vectors’ size is the number of times that we check).
Then I need to write a loop for each time t in order to calculate the difference between the previous and the current concentrations.
The codes that I already tried didn’t work at all and I am still a beginner so I would really appreciate your help and ideas.
Thanks in advance :)
1 件のコメント
David Hill
2021 年 4 月 5 日
Show us the code that you currently have including inputs and expected output. Ask a specific question.
回答 (0 件)
この質問は閉じられています。
参考
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!