Thanks Christopher
Your suggestion resolved my question.
Best regards,
Dare.
Christopher Creutzig <Christopher.Creutzig@mathworks.com> wrote in message <4ECB968F.9030103@mathworks.com>...
> On 21.11.11 21:45, Darshan wrote:
> > hi
> >
> > I am using the following command to solve the equation in MATLAB
> >
> > CR = 0.012
> > t = solve('1exp((t^0.22)*(1/CR)*(exp(CR*(t^0.78))1))=0.999725776893977','t')
>
> That will *not* get your definition of CR inserted into the solve
> command. Do not use strings. The following probably would work:
>
> CR = 0.012;
> syms t;
> solve(1exp((t^0.22)*(1/CR)*(exp(CR*(t^0.78))1))  ...
> 0.999725776893977, t)
>
> But that causes a very long computation to happen, because with
> fractional exponents, things get hairy in the complex plane, and the
> resulting computations have to deal with lengthy rational numbers.
> Assuming you have MATLAB 2011b or later, the following works just fine
> for me:
>
> CR = 0.012;
> syms t;
> solve(1exp((t^0.22)*(1/CR)*(exp(CR*(t^0.78))1))  ...
> 0.999725776893977, t, 'Real', true)
>
> ans =
>
> 8.4646898405560714165921833287311
>
>
>
> Christopher
