From: Ajith on
I get this error message while working on a imported data
file. All operations were until i tried the log function.
Please help.

Error message:

??? Undefined function or method 'log' for input arguments
of type 'uint16'.

Thanks,
Ajith
From: Bruno Luong on
"Ajith " <ajith77(a)gmail.com> wrote in message
<fvou30$4gu$1(a)fred.mathworks.com>...
> I get this error message while working on a imported data
> file. All operations were until i tried the log function.
> Please help.
>
> Error message:
>
> ??? Undefined function or method 'log' for input arguments
> of type 'uint16'.
>
> Thanks,
> Ajith

cast data to double:

data = ... % uint16
res = log(double(data))

Bruno