why are the scalogram coefficients given in a table rather than matrix?

5 views (last 30 days)
Hello,
I am trying to get the scalogram coefficients from U, filterbank 2.
scattergram(sf,U,'FilterBank',2)
The resulting scalogram coefficients are given in a table. I don't know how to use this. I just want the coefficients like when cwt is applied.
How can I get these?
I would like to use a filterbank that allows only slow changing features to get through, hence the need for the filterbank 2.
Thanks!

Answers (1)

Suraj Kumar
Suraj Kumar on 3 Apr 2025 at 4:07
Hi Lucrezia,
To extract the scalogram coefficients which are stored in table format and convert them into a matrix format, you can use the tables's column indexing.
coeffs = u{:, 'Signal'}; % Extract the 'Signal' column
Now to store the extracted coefficients in a matrix you can concatenete them using the 'cell2mat' function in MATLAB.
You can refer to the following documentation for more information on the 'cell2mat' function in MATLAB:
coeffMatrix = cell2mat(coeffs);
Hope this resolves your issue!

Community Treasure Hunt

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

Start Hunting!