Borrar filtros
Borrar filtros

Function not accepting all available x values

1 visualización (últimos 30 días)
DONGUK KIM
DONGUK KIM el 23 de Abr. de 2020
Comentada: Sulaymon Eshkabilov el 23 de Abr. de 2020
So I wrote a simple code to get a plot of a function
x = linspace(0,100,101);
y = 4*x.*(x+1) / (4*x.*(x+1) + (sin( 8*sqrt(x+1) )).^2)
plot(x,y);
and for some reason y only comes out as a single value
Is there any reason why this might be happening?

Respuesta aceptada

Sulaymon Eshkabilov
Sulaymon Eshkabilov el 23 de Abr. de 2020
y = 4*x.*(x+1) ./ (4*x.*(x+1) + (sin( 8*sqrt(x+1) )).^2);

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