Could I have the missing points

2 ビュー (過去 30 日間)
Pantelis Saviolakis
Pantelis Saviolakis 2014 年 2 月 25 日
Hello again.My data points creates a continuous line in the figure.I want to ask, if there is a way to specify the value of x-axis for y-axis=1/e even if i dont have point with these values. I have tried it, but the answer was 'empty matrix 1-0' (sth like this)

採用された回答

Mischa Kim
Mischa Kim 2014 年 2 月 25 日
編集済み: Mischa Kim 2014 年 2 月 25 日
Pantelis, use curve fitting. As an example,
x = 0:0.1:1;
y = sin(x); % your data
p = polyfit(x(3:4),y(x>=x(3) & x<=x(4)),1); % fitting coefficients
yf = p(2) + p(1)*x(3:4); % curve fit
plot(x,y,x(3:4),yf,'r*')
Of course, you want to make sure that the fitting is done over a "small" region (just as an example, between 3rd and 4th data points, as shown above) to get a "good" approximation of the in-between vals.
  1 件のコメント
Pantelis Saviolakis
Pantelis Saviolakis 2014 年 2 月 25 日
i tried it but i take the same answer.Obviously i do sth wrong. I will try it later. Thanks.

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

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by