expand length of matrix to fixed value

2 ビュー (過去 30 日間)
Morten Jørgensen
Morten Jørgensen 2020 年 1 月 24 日
回答済み: Adam 2020 年 1 月 24 日
I have problem expand a matrix
t is a 108x1 double, it contains a time vector 108 values in seconds.
How can I extend this matrix, so in contains 200 values with min(t) to max(t)?
the goal is to have t = to a 200x1 double

採用された回答

Adam
Adam 2020 年 1 月 24 日
t = interp1( 1:108, t, linspace(1, 108, 200 ) );
would be one way to do it.

その他の回答 (0 件)

カテゴリ

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