Borrar filtros
Borrar filtros

how to drw line y=m*x+b?

1 visualización (últimos 30 días)
Darshan Patel
Darshan Patel el 3 de Abr. de 2016
Respondida: Kuifeng el 3 de Abr. de 2016
i am having values
m=0.00914
x=641.4
b=17.1317
how to draw line with this poins I have done this code for it but this is not solution
function line(x,m,b)
y=m*x+b;
plot(x,y);
end

Respuestas (1)

Kuifeng
Kuifeng el 3 de Abr. de 2016
Maybe try m=0.00914; x0=641.4; b=17.1317; ezplot('0.00914*x+17.1317', [0 1000]) hold on, plot(x0, m*x0+b,'ro') axis tight

Categorías

Más información sobre Interactive Control and Callbacks en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by