필터 지우기
필터 지우기

Drawing slope

조회 수: 6 (최근 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