Using delay seq to shift data with different delay conditions
Show older comments
Hi! I have a matrix that has 10 columns and 50 rows. I want to introduce a delay in columns 2,3 and 4, and then again in columns 7,8,9 and 10. In column 2, I want a delay by one sample, in column 3 I want a delay by 2 samples, in column 4 I want a delay of 3 samples, and similarly in columns 7,8,9 and 10 I want delays of 4,5,6 and 7 samples. Is there a way I could use delayseq to automate this process? Thanks in advance!
4 Comments
Sriram Tadavarty
on 19 Mar 2020
May i know what does delay mean here? Any small example for the situation.
Zuha Yousuf
on 19 Mar 2020
Sriram Tadavarty
on 19 Mar 2020
So, to see if i understand correctly, you want the output to be [2 0 0;5 3 0;8 6 4;0 9 7;0 0 10], for the input matrix you placed. Am i right?
Zuha Yousuf
on 19 Mar 2020
Accepted Answer
More Answers (1)
Zuha Yousuf
on 19 Mar 2020
0 votes
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!