Asked by Seamus Pugh
on 29 Feb 2016

Answer by Jos (10584)
on 29 Feb 2016

The plot is not empty. It contains 66 points all having the same y value (at y=-6.5514), which can be seen here:

plot(x,y,'bo')

Why is y a scalar? Because, as others told you already, there is a difference between element-wise (.* and ./) and matrix operators (* and /):

x = 1:4

x ./ x

x / x

Sign in to comment.

Opportunities for recent engineering grads.

Apply Today
## 0 Comments

Sign in to comment.