Why do I get a graph without a line when I try to plot the following equation?

 Respuesta aceptada

It is not blank, as 51 small dots are plotted. Try this:
plot (x,y,'bo')
This is default behaviour for plot when y is a scalar. If you would have taken a look at x and y in your workspace, you would probably have spotted that. The reason for y being a scalar is addressed by dpb.

Más respuestas (1)

Need the "dot" operator on the divide as well as the exponent...as is it's a matrix operator, not element-wise.
doc / % for details

Categorías

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

Etiquetas

Preguntada:

el 2 de Feb. de 2016

Respondida:

el 2 de Feb. de 2016

Community Treasure Hunt

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

Start Hunting!

Translated by