How to divided the signal to matrix where contain on rows and columns .

1 view (last 30 days)
good greeting
I have signal is length it 102400 and I want that to subdivid it on matrix form (1024 ,100) where (1024 ) is rows ,and (100) is colums .Next, the discrete wavelet transform is applied to each column (window)
I hope find from you help me solve this and I would be very grateful

Answers (1)

William Rose
William Rose on 15 Dec 2021
Create a signal of length 102400:
y=rand(102400,1);
Change the shape to 100 columns:
y=reshape(y,[1024,100]);
Check the results:
disp(size(y))
1024 100
Looks good.

Community Treasure Hunt

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

Start Hunting!