Clear Filters
Clear Filters

How to design your own input signal characteristics in Simulink?

3 views (last 30 days)
While Designing Active noise cancellation algorithm in simulink, generally white noise or pink noise is used, however if the source of noise is from cetrain plane with specific dB at defined frequency in frequency band from 50Hz to 10KHz. How to design source noise signal in simulink. Or do I need to intergate the simulink model to hardware system in real time?

Answers (1)

Jaynik
Jaynik on 28 Jun 2024
Hi Savi,
In Simulink, you can design a source noise signal using the Noise block. This block allows you to model noise as an ideal current or voltage source for blocks. You can select the noise distribution type as white, piecewise-linear, or colored.
Refer to this documentation to learn more: https://www.mathworks.com/help/simrf/ref/noise.html
If you want to generate Gaussian noise with a certain mean and variance, you can use the Random Source block from the DSP System Toolbox. You can adjust the block parameters such as Source type, Mean, and Variance. You can refer this documentation page for more information: https://www.mathworks.com/help/dsp/ref/randomsource.html. You can then use the Digital Filter Design block to create a band-pass filter that allows frequencies from 50Hz to 10KHz. Adjust the filter parameters to match the specific dB and frequency characteristics of your noise source. Refer to these pages to learn more:
For a more realistic simulation, you can consider integrating your Simulink model with a hardware system in real time. This is often done using Hardware-in-the-Loop (HIL) simulation. HIL simulation allows you to use Simulink Real-Time to download and execute a real-time application that you generate from your model. You can also check for simulation overruns and change run-time parameters for your application on a real-time target using Simulink Real-Time. Refer this documentation link to learn more about HIL simulation: https://www.mathworks.com/help/simscape/hardware-in-the-loop-simulation-with-simulink-real-time.html
Hope this helps!

Categories

Find more on Get Started with DSP System Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!