>> clear
>> eqn=D1/log(1+k1.*x)==B1./(x-C1);
Undefined function or variable 'D1'.
You should post complete self contained code. Not fragments.
i.e. starting from
clear
syms .....
....
... to the end
Then copy paste all of the above. Do not copy half the code.
Also, in syms, no need for the "." in there. Do not confuse syms with
no syms.
--Nasser