フィルターのクリア

hello guys.this is my code.x2 and y2 are the experimental data while pt and y12 are the theoritical fittings.y2 has 10 values while y12 has 450 points.i need to take the 10 points from theoritical on the same pt as experimental

1 回表示 (過去 30 日間)
code

採用された回答

KSSV
KSSV 2018 年 1 月 18 日
Simple, you may use interpolation to get what you want.
%%Get 10 points from theoritical on the same pt as experimental
x2i = x2 ;
y2i = interp1(pt,y12,x2i) ;
  2 件のコメント
waqas muhammad
waqas muhammad 2018 年 1 月 18 日
thanks sir...it works but there is another problem...if i plot experimental/theoritical,it also give me results but if i plot then plot is not correct...the plot should be like this but it is not...

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

その他の回答 (1 件)

waqas muhammad
waqas muhammad 2018 年 1 月 18 日
x2i = x2 ; y2i = interp1(pt,y12,x2i) ; kafa=y2./y2i plot(x2,kafa) sir like this..right?i divide that experimental by theoritical points and then plot it with pt.... but it give me plot like this...

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by