フィルターのクリア

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 Center および File ExchangeInteractive Control and Callbacks についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by