I tried to calculate the square root of a type int32 variable using the sqrt()
function, but I got this error: Undefined function 'sqrt' for input arguments of
type 'int32'. Then I found that there's a function called isqrt()
that calculates the square root of type integer variables but it doesn't exist in my Matlab version (R2013a). I tried to download this function but I can't find it. I tried powering the value to (1/2) but integers can only be raised to positive integral powers.
So is there any way to do this?