MATLAB Answers

expand length of matrix to fixed value

조회 수: 6(최근 30일)
Morten Jørgensen
Morten Jørgensen 24 Jan 2020
답변: Adam 24 Jan 2020
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

  댓글 수: 0

Sign in to comment.

채택된 답변

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

  댓글 수: 0

Sign in to comment.

추가 답변(0개)


Translated by