你好,除去0比0为NaN画不出来外,可以画成:
x = linspace(-10,10,101); y = sqrt(x.^2)./x; plot(x,y) axis([-12,12,-1.5,1.5])%调整一下图像显示范围
有帮助望采纳