필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

function with vectors to calculate chemical concentration

조회 수: 2 (최근 30일)
Noa Prasquier
Noa Prasquier 2021년 4월 5일
마감: John D'Errico 2021년 4월 5일
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
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!

Translated by