- #1
- 210
- 0
How do I plot something like (x-4)(x-5)(x-6)?
I've tried:
x = -6:0.01:6;
y = (x-4)*(x-5)*(x-6);
plot(x,y)
It's giving me the error:
Error using *
Inner matrix dimensions must agree.
I've tried:
x = -6:0.01:6;
y = (x-4)*(x-5)*(x-6);
plot(x,y)
It's giving me the error:
Error using *
Inner matrix dimensions must agree.