How to interpolate for a particular index within vector?

3 ビュー (過去 30 日間)
Shubham Mohan Tatpalliwar
Shubham Mohan Tatpalliwar 2018 年 11 月 21 日
編集済み: madhan ravi 2018 年 11 月 21 日
The uploaded vector is matrix of numbers from 2 to 99
i want to interpolate from column 15 to 30
within a range of 2 to 6
is it possible to interpolate for a particular range ?

回答 (1 件)

madhan ravi
madhan ravi 2018 年 11 月 21 日
編集済み: madhan ravi 2018 年 11 月 21 日
EDITED
y=load('ICE.mat');
x=linspace(2,6,15);
yy=interp1(y.DrehmomentICE1(15:30),x) %interpolated values like this?
  2 件のコメント
Shubham Mohan Tatpalliwar
Shubham Mohan Tatpalliwar 2018 年 11 月 21 日
編集済み: madhan ravi 2018 年 11 月 21 日
y=load('ICE.mat');
x=linspace(2,6,15);% i want in this range
yy=interp1(y.DrehmomentICE1(15):y.DrehmomentICE1(30),x)
How to interpolate this directly in this vector
like i want the rest matrix as it is and the values 15 to 30 should be interpolated with a range of 2 to 6
madhan ravi's reply: "How to interpolate this directly in this vector"
what do you mean?
Shubham Mohan Tatpalliwar
Shubham Mohan Tatpalliwar 2018 年 11 月 21 日
the values of index from 15 to 30 should be interpolated and rest would be same.
like i would give input as a whole vector but only these 15 values would be interpolated

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeInterpolation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by