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