Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Interpolation help please!

1 回表示 (過去 30 日間)
Hudson McKinley
Hudson McKinley 2020 年 5 月 4 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日

回答 (1 件)

Jason Nicholson
Jason Nicholson 2020 年 5 月 5 日
clc; clear; close all;
t = [2 4 6 8 10];
x = [2 3 4 5 6];
y = [-1 2 1 3 -1];
F1 = griddedInterpolant(t,x);
F2 = griddedInterpolant(t,y);
F1(2.5)
F2(2.5)
% function plots
fplot(@(t) F1(t),[2,10])
figure;
fplot(@(t) F2(t), [2,10])
Click "Accept this Answer" if this helped you.

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by