单项选择题

在MATLAB命令行窗口输入下列命令:
>>A=[1,0,-2];
>>x=roots(A);
则x(1)的值为()。

A.1
B.-2
C.1.4142
D.-1.4142