How do I stretch the time of a signal locally ?
12 ビュー (過去 30 日間)
I have a signal that its time increment is 0.01 sec and the signal duration is 100 seconds. I want to stretch and increase the time increment from time 50 sec to 55 sec from 0.01 sec to 0.5 sec. apparently this will affect the values of the successive time values and the total time duration.
what is the algorithm to do this ?
回答 (1 件)
Amir RF 2020 年 12 月 10 日
Hello Dear Farzad,
If I understand your question correctly, your original signal is a 100 sec signal and you want to expand some part of this signal. First you can slice your original signal such as
interested_vector = original(50:0.5:55);
Then you should insert this part in the right place:
result = (original(0:50) interested_vector original(55:end));
I hope this gives you some idea to do what you want.