Why am I get discontinuous plot?

1 次查看(过去 30 天)
Why am I get discontinuous plot?
x = -2*pi:.1:2*pi;
y = 2e-6*sin(x).*cos(x)/(10.5e-12*sin(x).^2+13.8e-12*cos(x).^2);

采纳的回答

Azzi Abdelmalek
Azzi Abdelmalek 2014-11-27
编辑:Azzi Abdelmalek 2014-11-27
Use ./ instead of /
x = -2*pi:.1:2*pi;
y = 2e-6*sin(x).*cos(x)./(10.5e-12*sin(x).^2+13.8e-12*cos(x).^2);
plot(x,y)

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Line Plots 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by