expand length of matrix to fixed value

2 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Interpolation 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by