I understand that you are trying to compare the modal analysis data of a plate with and without crack using MATLAB’s “Wavelet” Toolbox.
When working with such signals, a direct comparison in the time domain may not highlight the differences effectively. So, you can use time-frequency analysis (Continuous Wavelet Transform) and wavelet coherence, which will provide you a clearer comparison of the two datasets.
Please refer to the following example code that shows how to use CWT, wavelet coherence, and DWT-based energy comparison:
cwt(signal_no_crack,'amor',fs);
title('CWT of Plate Without Crack');
cwt(signal_crack,'amor',fs);
title('CWT of Plate With Crack');
wcoherence(signal_no_crack, signal_crack, fs);
title('Wavelet Coherence Between Healthy and Cracked Plate');
[C1,L1] = wavedec(signal_no_crack, level, wname);
[C2,L2] = wavedec(signal_crack, level, wname);
xlabel('Decomposition Level');
legend('Without Crack','With Crack');
title('Energy Distribution at Different Wavelet Levels');
Here, we are doing the following:
- We use "CWT" to visualize differences in time-frequency patterns.
- Apply wavelet coherence to compare correlation between healthy and cracked signals.
- And finally, we compute energy distribution across wavelet levels to quantify changes caused by the crack.
For further reference, please check the following official MATLAB documentations:
Cheers & Happy Coding!