外挿値の取得について
9 views (last 30 days)
Show older comments
x軸にc, y軸にDをプロットし(実線)、y軸のデータがない部分を外挿でプロットしました(点線)。
外挿のコードは以下の通りです。
その際、以下のプロット図の点線のxy数値を取得したいのですが、どうすればよいでしょうか?
N = (linspace(1450,1460,100))';
c_ext = interp1(c, D, N, 'spline', 'extrap')

0 Comments
Accepted Answer
Hernia Baby
on 20 Aug 2021
論理演算子を活用するのはいかがでしょうか?
以下、例を示します
x = linspace(0,10,100)';
y = sin(x) + rand(length(x),1);
xが5より小さいものだけを抜き出します
x1 = x(x<5);
y1 = y(x<5);
プロットします
plot(x,y,':',x1,y1,'--')
legend({'生データ','切り取り'});
More Answers (0)
See Also
Categories
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!