Matlab won't plot my function

2 visualizaciones (últimos 30 días)
Rachel Berger
Rachel Berger el 6 de Dic. de 2015
Comentada: Rachel Berger el 6 de Dic. de 2015
Hi there, I'm trying to plot this function in matlab, but the plot shows up blank. The workspace says y=1.524 which confuses me. Any ideas?
t=0:0.1:1;
y=(2*t+1)/(t.^2+1);
plot(t,y)

Respuesta aceptada

Walter Roberson
Walter Roberson el 6 de Dic. de 2015
Editada: Walter Roberson el 6 de Dic. de 2015
t=0:0.1:1;
y=(2*t+1) ./ (t.^2+1);
plot(t,y)

Más respuestas (0)

Categorías

Más información sobre Interactive Control and Callbacks en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by