Drawing slope

2 次查看(过去 30 天)
Raviteja
Raviteja 2012-2-24
Can we draw a line with the slope vector
m =[-0.74586; -0.6661]
if yes how ?

回答(1 个)

Wayne King
Wayne King 2012-2-24
You do not say which of your elements above is the intercept and which is the slope.
x = -2:.01:2;
y = m(1)+m(2)*x;
plot(x,y)
or
x = -2:.01:2;
y = m(2)+m(1)*x;
plot(x,y)

类别

Help CenterFile Exchange 中查找有关 Variables 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by