I have some questions about the example "Denoise Signals with Generative Adversarial Networks"

when i run the example, I get the following errors
1. The function or variable 'helperDeepSignalDenoiserAE' is not recognized.
Error denoise (line 15)
helperDeepSignalDenoiserAE(SignalLength=1024, ...
corresponds to this part of the program
2. The function or variable 'helperDeepSignalDenoiserGAN' is not recognized.
Error denoise (line 38)
helperDeepSignalDenoiserGAN(SignalLength=1024, ...
corresponds to this part of the program
if you have some methods to solve that, please tell me, thank you very much, have a nice day!

 Accepted Answer

When you
openExample('deeplearning_shared/DeepSignalDenoiserExample')
then the directory that you are automatically cd()'d to includes the files helperDeepSignalDenoiserGAN.m helperDeepSignalDenoiserAE.m

3 Comments

Thank you very much! i have obtained the helperDeepSignalDenoiserAE and helperDeepSignalDenoiserGAN, but when i run the program, I get some errors again. Do you know how to solve these problems, have a nice day!
error:
Incorrect use of eval
The function or variable 'transposedConv1dLayer' is not recognized.
Error helperDeepSignalDenoiserAE/initializeDenoisingAutoencoder (line 281)
eval("tconv_"+ii+"=transposedConv1dLayer("+this. FilterSize+","+NumFilters(ii)+",'Stride',2,'Cropping','same','Name','tconv_"+ii+"'); ");
Error helperDeepSignalDenoiserAE (line 58)
this.initializeDenoisingAutoencoder();
Error denoise (line 15)
helperDeepSignalDenoiserAE(SignalLength=1024, ...
transposedConv1dLayer is a function that is part of Deep Learning Toolbox. It was introduced in R2022a. Is it possible that you are using an older MATLAB release?
Yes, thanks for your answer. It is indeed the issue caused by the version of MATLAB. Have a great day!

Sign in to comment.

More Answers (1)

1 Comment

thank you for your answer, but i don't find the function which have the name of "helperDeepSignalDenoiserAE" or "helperDeepSignalDenoiserGAN"
At the bottom of the page, there are only these functions below:

Sign in to comment.

Categories

Find more on Signal Processing Toolbox in Help Center and File Exchange

Asked:

on 17 Feb 2025

Commented:

on 18 Feb 2025

Community Treasure Hunt

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

Start Hunting!