フィルターのクリア

finding mathematical function of set of points and draw it

1 回表示 (過去 30 日間)
yusra Ch
yusra Ch 2017 年 6 月 28 日
コメント済み: yusra Ch 2017 年 7 月 6 日
Hello, I have a set of points : x= [10,5 17,5 24,5 31,5] and Y =[5,11804923375421 3,92022009244337 2,14345898571206 1,24047882220866]
The x vector represent the doppler spread values and the Y vector represents the coherence time values, I want to demonstrate that they have an inversely relationship which means Y= a /x . I want to find the value of a and then draw the line

採用された回答

Andrei Bobrov
Andrei Bobrov 2017 年 6 月 28 日
x= [10.5 17.5 24.5 31.5];
Y =[5.11804923375421 3.92022009244337 2.14345898571206 1.24047882220866];
f = fit(x(:),Y(:),fittype('a*x+b'),'StartPoint',[1,1]);
plot(x,Y,'or',xx,f(xx),'-b'),grid on
  7 件のコメント
Andrei Bobrov
Andrei Bobrov 2017 年 7 月 5 日
Hi John! I'm agree with you.
yusra Ch
yusra Ch 2017 年 7 月 6 日
How can I get the value of a after drawing the fit ?

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeRegression についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by