function d = double(c);
%komplex/double - prevod objektu typu 'komplex' na 'double'
%d = double(c)

d = c.real + c.imag*i; 