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

1 次查看(过去 30 天)
Darshan Patel
Darshan Patel 2016-4-3
回答: Kuifeng 2016-4-3
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

回答(1 个)

Kuifeng
Kuifeng 2016-4-3
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

类别

Help CenterFile Exchange 中查找有关 Interactive Control and Callbacks 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by