How to make a detaset with uniform interval.

1 回表示 (過去 30 日間)
Nisar Ahmed
Nisar Ahmed 2021 年 12 月 6 日
コメント済み: Nisar Ahmed 2021 年 12 月 6 日
Hi,
I have a vector with dimensions say t with dimensions 1*553. However, the interval between t values is not constant. like if t(2) - t(1) = 0.00012671 and t(4) - t(2) = 0.0001268. How I can make this interval uniform in such a way that the length (553) remains same?

採用された回答

DrZoidberg
DrZoidberg 2021 年 12 月 6 日
編集済み: DrZoidberg 2021 年 12 月 6 日
maybe the linespace function will help you to achive this:
myinterval = linspace(t_1, t_2, 533)

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by