Creating a spline (curve) parallel to an existing spline (curve)
3 ビュー (過去 30 日間)
古いコメントを表示
Hi,
I have attached an I_chart. This is a discrete dataset.
If I have a different starting values (intial values) for d and i, how do I create a new plot (line or curve) parallel to the existing dataset.
I tried curve fitting, it didn't work if the fit is not good for the existing dataset.
In short, I want to create mutiple splines (from different initial values) parallel to the existing spline, and read their values.
Thanks for your help.
Cheers!
KD
0 件のコメント
回答 (1 件)
Image Analyst
2022 年 8 月 29 日
What exactly does "parallel" mean to you? Do you just want to shift it up or down by some amount, like this?
data = readmatrix('I_chart.xlsx');
x = data(:, 1);
y = data(:, 2);
plot(x, y, 'b.-')
grid on;
y2 = y + 0.1;
hold on;
plot(x, y2, 'r.-')
legend('Original', 'Shifted')
参考
カテゴリ
Help Center および File Exchange で Splines についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
