Quantcast
Channel: MATLAB Central Newsreader Recent Posts
Viewing all articles
Browse latest Browse all 19628

Re: sqrt of 3 dimensional array

$
0
0
On 5/10/2013 7:44 PM, Mohammad Manirul wrote:
> Hi,
> I need ur help. I want to get square root of 3 dimensional image. My input dimension is given below:
>
> input= 768X1024X3 uint8.
>
> But the error msg shows that " Undefined function or method 'sqrt' for input arguments of type 'uint8'."
>
> PLZ let me know if you have solution.
>

try to convert the image to data type such as double?


EDU>> x=uint8(8)
EDU>> sqrt(x)
Undefined function 'sqrt' for input arguments of type 'uint8'.
EDU>> sqrt(double(x))

ans =

     2.8284


--Nasser

Viewing all articles
Browse latest Browse all 19628

Trending Articles