How do I solve m = 2 [1- (ln(1/A)-1)/N + ln ( (1+(c/Kon))/1+(c/Koff))) in MATLAB?

I want to solve this equation:
m = 2 [1- (ln(1/A)-1)/N + ln ( (1+(c/Kon))/1+(c/Koff)))
when
A = 1/3
N =10
c= 0
Kon= 0.5
Koff = 0.02
How can i do it? I tried the solve function, but I can't do it.

2 Comments

@dafdfad: Destroying the question after an answer is given does not meet the intention of this forum. It is a counter-productive method. Please stop this. I do not like this forum to be misused.
I have restored the original text of this question.
dafdfad, this question has a clear subject and an accepted answer, so it may be valuable to someone else in the future. If you have a good reason why it should be removed from MATLAB Answers, please flag the question, explain why it should be deleted, and an administrator or high-reputation contributor will consider deleting the question. Please do not simply edit your question away.

Sign in to comment.

 Accepted Answer

A few errors: no * after the 2, a square bracket instead of parenthesis, and ln instead of log. Corrected code:
A = 1/3;
N =10;
c= 0;
Kon= 0.5;
Koff = 0.02;
m = 2* (1 - (log(1/A)-1)/N + log( (1+(c/Kon))/1+(c/Koff)))
In the command window:
m =
1.98027754226638

More Answers (0)

Categories

Tags

Community Treasure Hunt

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

Start Hunting!