Random Signal generation
Random testing has a great advantage as the input signals are Random ! and hence there is no effort required to develop test cases. Especially in the Model based testing frame work where there is a requirement model (a Simulink model) which is a reference and an operation code (C code or any other implementation). The same random signals can be injected into both the Model and the code and any failures can be debugged. One can test with any number of random signals until finding an error or gaining confidence on their model and code.
An example for random testing of Persistence algorithm can be found in:
http://www.mathworks.in/matlabcentral/fileexchange/39720-safety-critical-control-elements-examples
This submission contains several functions to generate random Boolean signals, Sine waves, Sine Sweeps and completely random waveform combinations. There are also Noise injection scripts that insert random noise signals and random regions of the input signal.
See file Sample1.m in submission for examples of usage of the functions.
Citar como
Chethan C U (2024). Random Signal generation (https://www.mathworks.com/matlabcentral/fileexchange/44168-random-signal-generation), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
- Verification, Validation, and Test > Simulink Test >
- Test and Measurement > Data Acquisition Toolbox > Periodic Waveform Generation >
- Signal Processing > Signal Processing Toolbox > Signal Generation and Preprocessing > Waveform Generation >
Etiquetas
Agradecimientos
Inspirado por: Safety Critical Control Elements Examples
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
Versión | Publicado | Notas de la versión | |
---|---|---|---|
1.0.0.0 |