Borrar filtros
Borrar filtros

I am getting a straight line while running the following code. What is going wrong??

1 visualización (últimos 30 días)
x=0.1:0.001:10;
y=exp(-x.^2/2)/sqrt(x);
plot(x,y)

Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 14 de Feb. de 2014
Editada: Azzi Abdelmalek el 14 de Feb. de 2014
x=0.1:0.001:10;
y=exp(-x.^2/2)./sqrt(x);
plot(x,y)
It's ./ instead of /

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