Can not plot, please help

 Respuesta aceptada

Sean de Wolski
Sean de Wolski el 18 de Oct. de 2011

0 votos

It is plotting, it's just only plotting a single point. The matrix division of a 1x11 vector by a 1x11 vector is a scalar.
ones(1,10)/ones(1,10)
You probably meant for element-by-element division
ones(1,10)./ones(1,10)
And thus your defintion of y:
y = (15*x)./(4*x.^2-3*x+4)
look at
doc vectorize
to avoid these issues in the future.

Más respuestas (0)

Categorías

Más información sobre Line Plots en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 18 de Oct. de 2011

Community Treasure Hunt

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

Start Hunting!

Translated by