![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1330685/image.jpeg)
How to combine 2 signals
42 ビュー (過去 30 日間)
古いコメントを表示
I have a signal that was decmoposed into 2 signals, and the (decomposed) signals were put into CNN for prediction.I got the predictions for the 2 decomposed signals. How can I combine/add them together to get a single signal for the result?
2 件のコメント
Image Analyst
2023 年 3 月 20 日
That depends on how you decomposed them in the first place.
Just undo/reverse that process.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1330685/image.jpeg)
回答 (1 件)
Abb
2023 年 3 月 20 日
% assume you have the two decomposed signals and their predictions already
alpha = 0.5; % adjust the weighting as desired
final_pred = alpha*pred1 + (1-alpha)*pred2;
original_signal = signal1 + signal2;
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!