double function Matlab
double() function Convert symbolic matrix to MATLAB numeric form.
Syntax
r = double(S)
Description
r = double(S) converts the symbolic object S to a numeric object r.
Input Arguments
s
|
Symbolic constant, constant expression, or symbolic matrix whose entries are constants or constant expressions. |
Output Arguments
r
|
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. |
Example
>> 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