Fit Curve a Graph with Shape like y^2 = x

1 回表示 (過去 30 日間)
Adrita Bima Adi
Adrita Bima Adi 2021 年 2 月 15 日
回答済み: Aditya Patil 2021 年 2 月 18 日
I would like to use fit curve for my data that shape like y^2 = x graph (parabola rotated 90° to the right).
I am using custom equation like y=a*sqrt(x+b)+c but y^2 = x does not necessarily mean y=sqrt(x).
How should I change my custom equation?
Thank you.

回答 (1 件)

Aditya Patil
Aditya Patil 2021 年 2 月 18 日
generally, a function is expected to map only one y value for each x value. As you have two values for each input, you need to redesign your problem. There are two workarounds for this.
You can use two separate equations, that is, and .
Alternately, you can reverse the dependency. That is, use .

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by