Drawing slope

Respuestas (1)

Wayne King
Wayne King el 24 de Feb. de 2012

1 voto

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)

Categorías

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

Etiquetas

Preguntada:

el 24 de Feb. de 2012

Community Treasure Hunt

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

Start Hunting!

Translated by