Why am I get discontinuous plot?

1 visualización (últimos 30 días)
Moj
Moj el 27 de Nov. de 2014
Editada: Azzi Abdelmalek el 27 de Nov. de 2014
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);

Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 27 de Nov. de 2014
Editada: Azzi Abdelmalek el 27 de Nov. de 2014
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)

Más respuestas (0)

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by