double function Matlab
double() function Convert symbolic matrix to MATLAB numeric form.
r = double(S)
r = double(S) converts the symbolic object S to a numeric object r.
|Symbolic constant, constant expression, or symbolic matrix whose entries are constants or constant expressions.|
|If S is a symbolic constant or constant expression, r is a double-precision floating-point number representing the value of S. If S is a symbolic matrix whose entries are constants or constant expressions, r is a matrix of double precision floating-point numbers representing the values of the entries of S.|
>> img = imread('Desert.jpg'); % reading an image >> class(img) % determining type of image which is object here ans = uint8 >> img1 = double(img); % converting object to double >> class(img1) % determining type of image which is double now ans = double