Extrpoolation not along dimension

조회 수: 2 (최근 30일)
Rafael Kübler
Rafael Kübler 2017년 11월 9일
댓글: Torsten 2017년 11월 9일
Hello together,
i have a following simplyfied matrix z with corresponding x and y axis
z = [3 2 1 1 1 1 1 1; ...
2 3 2 1 1 1 1 1; ...
1 2 3 2 1 1 1 1; ...
1 1 2 3 2 1 1 1; ...
1 1 1 2 3 2 1 1];
x = 1:8;
y = 1:5;
now i want to extrapolate z to the y axis of
yNew = 1:6;
the extrapolated row in z should obviously shold look like this
zNew1(6,:) = [1 1 1 1 2 3 2 1]
and not like
zNew2(6,:) = [1 1 0 1 4 3 1 1]
zNew2 would be the result of an linear extrapolation along the dimension of y.
But obviously the data in z should look extrapolated like zNew1 which would be a diagonal extrapolation.
How can i extrapolate data which is not as simple as this example?
thank you for your help.
Rafael

채택된 답변

Torsten
Torsten 2017년 11월 9일
There is no "obvious" way to extrapolate data - that's why several methods exist to do so.
There is no other way than just specifying a formula. This formula can of course be as complicated as you like - including intelligent algorithms that analyse the structure of your data matrix.
Best wishes
Torsten.
  댓글 수: 2
Rafael Kübler
Rafael Kübler 2017년 11월 9일
What are those "several methods"?
Torsten
Torsten 2017년 11월 9일
Some ways to extrapolate:
- constant extrapolation
- linear extrapolation
- nearest neighbour extrapolation
- quadratic extrapolation
...
See also
https://de.mathworks.com/help/matlab/ref/interp1.html
under the "extrapolation" section.
Best wishes
Torsten.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by